public static void main(String[] args) {
List<String> list = new ArrayList<>();
Collections.addAll(list,"C++","Java","Python");
System.out.println(list);
Collections.shuffle(list);
System.out.println(list);
List<Integer> list1 = new ArrayList<>();
Collections.addAll(list1,2,3,4,8,1,2);
Collections.sort(list1);
System.out.println(list1);
List<People> list2 = new ArrayList<>();
list2.add(new People("张三",23,175.3));
list2.add(new People("李四",24,176.5));
list2.add(new People("王五",27,178.5));
Collections.sort(list2, (o1, o2) ->Double.compare(o2.getHeight(), o1.getHeight()));
System.out.println(list2);
}