Map<String, String> paramsData=new LinkedHashMap<>();
Iterator iterator = params.entrySet().iterator();
while(iterator.hasNext()) {
Map.Entry<String, String> entry=(Map.Entry<String, String>) iterator.next();
paramsData.put(entry.getKey(),entry.getValue());
}
java 循环迭代map
最新推荐文章于 2024-08-29 03:22:27 发布