title: How does the Java 'for each' loop work?
body: <p>Consider:</p>
  
  <pre><code>List&lt;String&gt; someList = new ArrayList&lt;String&gt;();
  // add "monkey", "donkey", "skeleton key" to someList
  </code></pre>
  
  
  
  <pre><code>for (String item : someList) {
      System.out.println(item);
  }
  </code></pre>
  
  <p>What would the equivalent <code>for</code> loop look like without using the <em>for each</em> syntax?</p>