Java使用entrySet方法获取Map集合中的元素
1 ReMap parmMap = new ReMap(); 2 Map<String, String[]> uriAttributes = request.getParameterMap(); 3 for (Map.Entry<String, String[]> attr : uriAttributes.entrySet()) { 4 String attrkey = attr.getKey().toString(); 5 for (String attrVal : attr.getValue()) { 6 parmMap.put(attrkey, attrVal); 7 } 8 }