List<Map<String,String>> list = new ArrayList<Map<String,String>>();
Map<String,String> m =new HashMap<String,String>();
m.put("k","0");
list.add(m);
m.put("k","1");
list.add(m);
System.out.println(list.toString());
大家觉的最后的结果是什么,是[{k=0}, {k=1}] 还是[{k=1}, {k=1}],不要做实验啊,直接想 |
|