Iterate through a HashMap

Possible Duplicate:
How do I iterate over each Entry in a Collection Map?

What’s the best way to iterate over the items in a HashMap?


Iterate through the entrySet like so:

Read more on Map