Map<ID,List<String>> testmap = new Map<ID,List<String>> ();
for (Id id : testmap .keySet())
{
System.debug('Key is '+ id);
System.debug('this prints whole related list '+testmap .get(id));
for(String s : testmap .get(id))
{
System.debug('this prints list of string with each value separated '+s);
}
}
As you are using List inside the Map, that means you need to loop over two variables like below:
Let me know if you have more question on it.
Thanks,
Gaurav
skype: gaurav62990
All Answers
As you are using List inside the Map, that means you need to loop over two variables like below:
Let me know if you have more question on it.
Thanks,
Gaurav
skype: gaurav62990