摘要: public class SortedMap { //treemap按key排序,默认是升序,可自定义降序 public static void main(String[] args) { Map map = new TreeMap(new Comparator() { public int compare(Integer a, Integer b) { ... 阅读全文
posted @ 2016-10-17 10:33 32ddd 阅读(325) 评论(0) 推荐(0) 编辑