yanyoucheng520 发表于 2014-7-11 19:19 你这个代码貌似比较繁琐,还有简便点的吗
cheye0207 发表于 2014-7-12 15:57 treeSet只要实现Comparable接口,复写compareTo方法就好了吧