title: parsing on HashMap in Java
body: <p>I've simple question.</p>
  
  <p>I set:</p>
  
  <pre><code>HashMap&lt;A, B&gt; myMap = new HashMap&lt;A, B&gt;();
  
  ...
  myMap.put(...)
  ...
  </code></pre>
  
  <p>Now I want to Loop through myMap and get all the keys (of type A). how can I do that?</p>
  
  <p>I want to get all keys from myMap by loop, and send them to "void myFunction(A param){...}". </p>