for (Map.Entry<String, Map<String, List>> entry:Map1.entrySet())
{
String key=entry.getKey();
System.out.println("Type : " +key);
for (Map.Entry<String, List> entry1 : entry.getKey().getValue().entrySet())
{
System.out.println("Type : " + entry1.getKey());
}
}
我不知道应该用什么替代
entry.getKey().getValue().entrySet()
。有人可以解释一下帮我理解吗?这是用于迭代嵌套映射的。我遇到的错误是:
.\common\devtracker\process\devtr\DevTrackerImpl.java:226: cannot find symbol
symbol : method getValue()
location: class java.lang.String
for (Map.Entry<String, List<ProjectBreakupVO>> entry1:entry.getKey().getValue().entrySet())