Java 哈希映射迭代,java哈希映射,Map<String,
分享于 点击 12972 次 点评:79
Java 哈希映射迭代,java哈希映射,MapMap<String, String> userSubgroups = new HashMap<String, String>();Iterator hashIterator = userSubgroups.entrySet().iterator();while(hashIterator.hasNext()){ Map.Entry e = (Map.Entry)hashIterator.next(); System.out.println(e.getKey() + " --- " + e.getValue());}
Map<String, String> userSubgroups = new HashMap<String, String>();Iterator hashIterator = userSubgroups.entrySet().iterator();while(hashIterator.hasNext()){ Map.Entry e = (Map.Entry)hashIterator.next(); System.out.println(e.getKey() + " --- " + e.getValue());}
用户点评