62,614
社区成员
发帖
与我相关
我的任务
分享
List list = new ArrayList();
list.add(new HashMap().put("1", "2")); //1
Map map = new HashMap();
map.put("1", "2");
list.add(map); //2
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
Map map1 = (Map) iterator.next();
System.out.println(map1);
}