title: JAVA Hashtable find maximum value
body: <p>I want to find the largest value in a <code>Hashtable</code> of <code>Integer</code> values. Is there any quick and efficient way to achieve this?</p>
  
  <p>This is my code...</p>
  
  <pre><code>Hashtable&lt;String,Integer&gt; h = new Hashtable&lt;String,Integer&gt;();
  
  h.add( "a",1 );
  h.add( "b",5 );
  h.add( "c",3 );
  h.add( "d",5 );
  h.add( "e",2 );
  h.add( "f",1 );
  
  int max = ???;
  </code></pre>
  
  <p>I need to find the maximum value, which in the example above is <code>5</code>. The <code>Hashtable</code> will always be small, less than 100 entries on average.</p>