摘要: 一、TreeMapTreeMap 默认排序规则:按照key的字典顺序来排序(升序)当然,也可以自定义排序规则:要实现Comparator接口。用法简单,先看下下面的demopublic class SortDemo { public static void main(String[] args... 阅读全文
posted @ 2015-10-30 10:42 坚守一辈子的幸福 阅读(80981) 评论(1) 推荐(3) 编辑