title: Alternate for loop with hasmap in java
body: <p>I have a for each loop running as:</p>
  
  <pre><code>for (System system : val.keySet()) 
  {
     do something
  }
  </code></pre>
  
  <p>Is there an alternate method to write this?</p>