Skip to content

Instantly share code, notes, and snippets.

@marcosvidolin
Created October 30, 2013 02:23
Show Gist options
  • Save marcosvidolin/7226284 to your computer and use it in GitHub Desktop.
Save marcosvidolin/7226284 to your computer and use it in GitHub Desktop.
Iterating a map
Map modelMap = model.asMap();
for (Object modelKey : modelMap.keySet()) {
Object modelValue = modelMap.get(modelKey);
System.out.println(modelKey + " -- " + modelValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment