Skip to content

Instantly share code, notes, and snippets.

@arnaudbos
Created June 23, 2011 13:27
Show Gist options
  • Save arnaudbos/1042525 to your computer and use it in GitHub Desktop.
Save arnaudbos/1042525 to your computer and use it in GitHub Desktop.
Python for loop on a Java Map
// Where map is a filled hashmap
for (Map.Entry<String, String> entry : map.entrySet())
{
String key = entry.getKey();
String value = entry.getValue();
System.out.printf("%s %s\n", key, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment