title: How to find the lowest value in a HashMap
body: <p>I want to output the lowest value from a <code>HashMap</code>. So far, I can iterate through the <code>HashMap</code> and print out it's values, but I'm not sure how to compare the values in the map itself and print out the key and value for the smallest one. This is how I am iterating:</p>
  <pre class="lang-java prettyprint-override"><code>for (HashMap.Entry&lt;String, Integer&gt; entry : itemTime.entrySet()) {
      System.out.println(entry.getKey() + &quot; &quot; + entry.getValue());
  }
  </code></pre>