import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.List;public class Student {private int id;private String name;private String gender;private int age;private int score;private String no; public static void main(String[] args) {List<Student> list = new ArrayList<Student>();Student stu = new Student();stu.id=1;stu.name = "张三";...list.add(stu); Collections.sort(list, new Comparator<Student>() {public int compare(Student o1, Student o2) {return o1.score-o2.score;} });}}