摘要:
//把需要比较的对象实现Comparable接口实现compareTo方法public class Address implements Comparable { String country; String city; String name; public Address(String country, String city, String name) { super(); this.country = country; this.city = city; this.name = name; }public String toString(){ return "\nname.. 阅读全文