Map
Set
for(Integer key:keys){
String val=values.get(key);
}
A better way is
Map
Set
for(Map.Entry
String val=entry.getValue();
}
It is better to get a reference to Map.Entry and then iterate instead of getting all the keys and making the Map object do the work of fetching the value each time