title: Is there any way to shorten a for-each loop in java?
body: <p>I want to iterate just the half of an array in java. Is there any elegant way to shorten this up, eg with a for-each loop?</p>
  
  <pre><code>int[] array = {0,1,2,3,4,5};
  
  for (int i = 0; i&lt;array.length/2; i++)
  {
      System.out.println(array[i]);
  }
  </code></pre>