list实现对Customer中某一属性字段排序从小到大展示
Customer类实现Comparable接口,public class Customer implements Comparable<Customer>{private int age;```public int compareTo(Customer o){ if(this.age>=o.getAge()) retrun 1;}...