title: Is there a such thing as a while each loop in Java?
body: <p>If there were such a thing I would imagine the syntax to be something along the lines of</p>
  
  <pre><code>while(Integer item : group&lt;Integer&gt;; item &gt; 5)
  {
      //do something
  }
  </code></pre>
  
  <p>Just wondering if there was something like this or a way to imitate this?</p>