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());
}
}
I don’t know what should be used in place of entry.getKey().getValue().entrySet(). Can any one explains me to understand this. This is for iterating nested map.
the error I got was
.\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())
entry.getKey() does not have the method getValue(), as its just returning a string. What you probably want here
is instead to do