遍历map

 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