title: Converting foreach loop to for loop
body: <p>I'm really new to Java, and was wondering if someone could help me convert the following to foreach loops into for loops?</p>
  
  <p>Assuming expression is a collection of items:</p>
  
  <pre><code>for(Type x: expression){
     ...
     for(Type y: x.expression){
       .....
      }
  }
  </code></pre>