💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## shuffle 打乱集合,必须是List集合. ~~~ ArrayList<Integer> arrayList = new ArrayList<>(); arrayList.add(10); arrayList.add(2); arrayList.add(1); arrayList.add(7); Collections.shuffle(arrayList); System.out.println(arrayList); ~~~ ## sort 对集合进行排序 ~~~ ArrayList<Integer> arrayList = new ArrayList<>(); arrayList.add(10); arrayList.add(2); arrayList.add(1); arrayList.add(7); Collections.sort(arrayList); System.out.println(arrayList); ~~~