Iterator HashMapItorator = $HashMap$.entrySet().iterator();
while (HashMapItorator.hasNext())
{
    Map.Entry pair = (Map.Entry) HashMapItorator.next();
    System.out.println(pair.getKey() + ": " + pair.getValue());
}