iterate map salesforce code example
Example: how to iterate map in apex salesforce
for(Id id: mapname.keyset()){
Set stringset= mapname.get(id);
for(String a: stringset){
sendMail(a);
}
for(Id id: mapname.keyset()){
Set stringset= mapname.get(id);
for(String a: stringset){
sendMail(a);
}