Iterate over each Entry in Map Java Android

entry put iterate Map HashMap Java Android

Map<String, Integer> map = new HashMap<String, Integer>();
map.put("key27", 27);
for (Map.Entry<String, Integer> entry : map.entrySet())
 String str = entry.getKey();
 int n = entry.getValue();
This entry was posted in Android Examples Code and tagged , . Bookmark the permalink.

Comments are closed.