Java重寫sort排序

實現Comparable接口,重寫compareTo()方法 public class Person implements Comparable<Person>{ private Integer age; private String name; public Person(Integer age, String name) { this.age = ag
相關文章
相關標籤/搜索