摘要: 转自:http://blog.csdn.net/exceptional_derek/article/details/40384659 先看一段代码: Java代码 public class Locale { private final static Map<String, Locale> map = 阅读全文
posted @ 2017-01-06 15:11 hadoop_dev 阅读(5344) 评论(0) 推荐(0) 编辑
摘要: 转自:http://swiftlet.net/archives/1259 HashMap的遍历有两种方式,如下所示:第一种利用entrySet的方式: 1 2 3 4 5 6 7 Map map = new HashMap(); Iterator iter = map.entrySet().iter 阅读全文
posted @ 2017-01-06 11:00 hadoop_dev 阅读(2724) 评论(0) 推荐(0) 编辑