摘要: //把需要比较的对象实现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.. 阅读全文
posted @ 2014-04-07 23:57 莫名字 阅读(3196) 评论(0) 推荐(0) 编辑