treeSet中对象的比较
摘要:TreeSet要实现对象的排序,该对象要实现Comparable 接口compareTO方法 public class Book implements Comparable { public int id; public String name; public double price; publi
阅读全文
posted @ 2018-05-23 09:44
posted @ 2018-05-23 09:44
posted @ 2018-05-15 10:40
posted @ 2018-05-08 22:06
posted @ 2018-05-08 22:01