摘要:
总结:Collections可以对List进行排序;如果想对Map进行排序,可以将Map转化成List,进行排序; public static void hashMapSortTest() { Map<String, Integer> maps = new HashMap<String, Integer>(); maps.put("boy", 8); maps.put("cat", 7); maps.put("dog", 1); maps.put("apple", 5); Iterator 阅读全文
posted @ 2012-08-05 18:45 ^阿福^ 阅读(7102) 评论(0) 推荐(0) 编辑