[map的迭代取数据][Hashmap的迭代取数据]
/**
*
* @param map
* @param o
* @return
*/
public static String keyString(HashMap<String, Integer> map,Object o){
Iterator<String> it= map.keySet().iterator();
while(it.hasNext()){
String keyString= it.next();
if(map.get(keyString).equals(o))
return keyString;
}
return null;
}

[map的迭代取数据][Hashmap的迭代取数据]

Iterator<String> it= paramMap.keySet().iterator();
while(it.hasNext()){
String keyString= it.next();
System.out.println(keyString+"--------"+paramMap.get(keyString));
}