标签:err imp rri over div turn tor rto etag
public class 对象比较 { /** } public class Person implements Comparable<Person> @Override public int compareTo(Person p) { return this.age-p.getAge(); } public class PersonCompartor implements Comparator<Person> { @Override public int compare(Person o1, Person o2) { return o1.getAge()-o2.getAge(); } */ }
标签:err imp rri over div turn tor rto etag
原文地址:https://www.cnblogs.com/java-jiangtao-home/p/9374715.html