title: HashMap - getting First Key value
body: <p>Below are the values contain in the HashMap</p>
  
  <pre><code>statusName {Active=33, Renewals Completed=3, Application=15}
  </code></pre>
  
  <p>Java code to getting the first Key (i.e Active)</p>
  
  <pre><code>Object myKey = statusName.keySet().toArray()[0];
  </code></pre>
  
  <p>How can we collect the first Key "Value" (i.e 33), I want to store both the "Key" and "Value" in separate variable.</p>