分解List<HashMap<String, String>> 的方法:
1
2
3
4
5
6 |
List<HashMap<String, String>> mapList; for (HashMap<String, String> h: mapList){ for (String key:h.keySet()){ String value=h.get(key); } } |
生成List<HashMap<String, String>> 的方法:
1
2
3
4
5
6
7 |
mDate = new
ArrayList<HashMap<String, String>>(); HashMap<String, String> map = new
HashMap<String, String>(); map.put(mErrCode, mJson.get(mErrCode).toString()); map.put(mClientID, mJson.get(mClientID).toString()); map.put(mClientName, mJson.get(mClientName).toString()); map.put(mClientNum, mJson.get(mClientNum).toString()); |
1 |
mDate.add(map); |
Java: 分解List<HashMap<String, String>>
原文:http://www.cnblogs.com/tefcricul/p/3548232.html