map集合的遍历
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
Object val = entry.getValue();
System.out.println("key:" +key + "\t value:" + val);
}
map集合第二种遍历方式:
Set<String> names = parameterMap.keySet();
for (String name: names) {
String[] values = parameterMap.get(name);
System.out.println(name + " = " + values);
}