Loop through HashMap
This question already has an answer here:
change areaMap.get(key);
to areaMap.get(lKey);
I do think you should iterate using a entry set so that you could get the value easier though
for (Map.Entry<String, List<X2Y2>> kv : areaMap.entrySet()) {
System.out.println(kv.getValue());
}
链接地址: http://www.djcxy.com/p/17994.html
上一篇: 用字符串键迭代HashMap
下一篇: 通过HashMap循环