title: How to create a method to get the Key of a value(string) in a hashmap
body: <p>I have an assignment, This is my HashMap initialization.. I can only use standard JAVA API.</p>
  
  <pre><code>private static HashMap&lt;String, HashSet&lt;String&gt;&gt; hMap = new HashMap&lt;String, HashSet&lt;String&gt;&gt;();
  </code></pre>
  
  <p>Is it possible to get the Key of a specified value say getkey(hMap,"today") and it would return the key where today is located..</p>
  
  <p>Aslo is there a way to get the last value of a Key in my HashSet?</p>
  
  <p>Any help is appreciated thanks!</p>