title: How to write "for x in list" in Java?
body: <p>I was wondering how to express a certain type of for loop in Java.</p>
  
  <p>In Python I would use:</p>
  
  <pre><code>for x in lst1:
         return 10
  </code></pre>
  
  <p>How would I do this in Java?</p>
  
  <pre><code>I know for the range for-loops, I use
  for(int i=0; i&lt;100; j++) {
     return "asdf"
  }
  </code></pre>
  
  <p>I just want to know how to do the other type of loop</p>