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             }

 

posted @ 2020-09-03 17:00  杨斌_济南  阅读(344)  评论(0编辑  收藏  举报