title: How to get the values from the Hashmap without using Iterator?
body: <pre><code>Iterator iterator = map.entrySet().iterator();
  while (iterator.hasNext()) 
  {
      Map.Entry mapEntry = (Map.Entry) iterator.next();
  System.out.println("The key is: " + mapEntry.getKey() + ",value is :" + mapEntry.getValue());
  
  }
  </code></pre>
  
  <p>This is my code. Now i don't want to use Iterator to get the values.
  Please help me to find best solution.</p>