嘛哟的博客HashMapmap = new HashMap(); map.put (1, "Mark");... Listlist = new ArrayList(map.values()); for (String s : list) { System.out.println(s); }假设你有:HashMapmap; // Assigned or popul...
weixin_39960755的博客在使用Map集合时,有时需要放入list,代码如下: List outList = new ArrayList(); Iterator it = prodRelGroupMap.keySet().iterator(); while (it.hasNext()) { String key = it.next(); System.out.println...