java中List<Map<String, Object>>方法遍历

2024-12-05 00:32:08
推荐回答(1个)
回答1:

for(Map map : list){
System.out.println("Map:")
for(Map.Entry entry : map.entrySet()){
System.out.println(" "+entry.getKey()+":"+entry.getValue());
}
}