java 循环Map

获取key

for(String dataKey : paraMap.keySet())   {  

    System.out.println(dataKey );             
}
循环map
for(Map.Entry<Integer, String> entry: map.entrySet()) {
 System.out.print(entry.getKey() + ":" + entry.getValue() + "\t");
}
posted @ 2015-03-10 11:28  sunruntheway  阅读(107)  评论(0)    收藏  举报