标签:print plist bsp val out obj index lin class
1.List<Map<String,String>> listObjectSec = JSONArray.parseObject(strArr,List.
class
);
for
(Map<String,String> mapList : listObjectSec){
for
(Map.Entry entry : mapList.entrySet()){
System.out.println( entry.getKey() +
" "
+entry.getValue());
}
}
2.List<Map<String,String>> listObjectFir = (List<Map<String,String>>) JSONArray.parse(strArr);
for
(Map<String,String> mapList : listObjectFir){
for
(Map.Entry entry : mapList.entrySet()){
System.out.println( entry.getKey() +
" "
+entry.getValue());
}
}
标签:print plist bsp val out obj index lin class
原文地址:https://www.cnblogs.com/aaron95/p/11451770.html