public static void main(String[] args) {code
Map<String,String> m=new HashMap<String,String>(); m.put("1", "fdasfd"); m.put("2","maodfsa"); Set <Map.Entry<String,String>> ss=m.entrySet(); for(Map.Entry<String, String> mm:ss) { String k=mm.getKey(); String v=mm.getValue(); System.out.println(k+" "+v); }
} }get