Map<String, Object> map=new HashMap<String, Object>();
map.put("id", "sunny");
map.put("value", "syl");
Set<String> get = map.keySet();
for (String test:get) {
System.out.println(test+","+map.get(test));
}
转载于:https://www.cnblogs.com/cyz110/p/7874040.html