Skip to content

Instantly share code, notes, and snippets.

@prasincs
Created April 26, 2009 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prasincs/101885 to your computer and use it in GitHub Desktop.
Save prasincs/101885 to your computer and use it in GitHub Desktop.
Loop over HashMap
Iterator iter = values.keySet().iterator();
while (iter.hasNext()) {
String key = iter.next();
String value = values.get(key);
System.out.println("Key ="+key+"\n Value"+value)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment