title: Is there a shorter way to write a for loop in Java?
body: <p>the code is </p>
  
  <pre><code> for(int i = 0; i &lt; max; i++) {
      //do something
   }
  </code></pre>
  
  <p>I use this exact code many times when I program, always starting at 0 and using the interval i++. There is really only one variable that changes (max)</p>
  
  <p>It could not be that much shorter, but considering how much this code is used, it would be quite helpful.</p>
  
  <p>I know in python there is the range function which is much quicker to type.</p>