Skip to content

Instantly share code, notes, and snippets.

@palmerabollo
Created June 26, 2013 21:56
Show Gist options
  • Save palmerabollo/5872121 to your computer and use it in GitHub Desktop.
Save palmerabollo/5872121 to your computer and use it in GitHub Desktop.
Map<String, String> map = new HashMap<String, String>();
map.put("1","abc");
map.put("2", "def");
for (Map.Entry<String, String> entry : map.entrySet()) {
System.out.println(entry.getValue() + ":" + entry.getKey());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment