程序员之👀

导航

2012年8月5日

摘要: 总结: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 ^阿福^ 阅读(7097) 评论(0) 推荐(0) 编辑

摘要: 更多信息,请参考:http://www.cxyeye.com/ Java类中的常用容器有HashMap,HashTable,ArrayList,TreeMap,LinkHashMap等,实际应用中应该如何选择与使用,应该注意哪些东西?这里把工作中遇到的一些问题进行总结,以便以后碰到相同问题能更快解... 阅读全文

posted @ 2012-08-05 18:15 ^阿福^ 阅读(7494) 评论(0) 推荐(1) 编辑

程序员之👀