title: Enhanced for loop Java to run until specific index?
body: <p>I am learning how to use enhanced for loops. 
  Imagine an array of size 1000, called arr. 
  Writing </p>
  
  <p><code>for(T x: arr) { /* blah blah */ }</code></p>
  
  <p>will traverse the entire array. I know that I can break the loop using <code>break;</code> inside the loop body. </p>
  
  <blockquote>
    <p>Is there a way to stop the loop execution at a particular index value?</p>
  </blockquote>
  
  <p>Is it possible to write this?</p>
  
  <pre><code>for (T x: arr[500]) {/* blah blah */}
  </code></pre>
  
  <p>So that I can avoid using a counter?</p>