我有以下HashMap:
Map<String,List<Objects>> abc = new HashMap<String,List<Objects>>()
如何迭代对象,访问对象的属性?
答案 0 :(得分:0)
for(Entry<String, List<Object>> e : abc.entrySet()){
String key = e.getKey();
for(Objects o : e.getValue()){
System.out.println(o.toString());
}
}