title: For loop - like Python range function
body: <p>I was wondering if in Java there is a function like the python range function.</p>
  
  <pre><code>range(4)
  </code></pre>
  
  <p>and it would return</p>
  
  <pre><code>[0,1,2,3]
  </code></pre>
  
  <p>This was an easy way to make for enhanced loops. It would be great to do this in Java because it would make for loops a lot easier. Is this possible?</p>