title: occurrence - TreeMap
body: <p>I have a treemap containing occurrence of words like this ...</p>
  
  <pre><code>TreeMap &lt;String,Integer&gt; occurrence = new TreeMap &lt;String,Integer&gt;();
  </code></pre>
  
  <p>String = Word</p>
  
  <p>Integer = amount of occurrence.</p>
  
  <p>How would I get the maximum occurrence - integer and then get the String mapped to the highest occurrence?  </p>