title: Iterating through a variable length array
body: <p>How do I iterate over a Java array of variable length. </p>
  
  <p>I guess I would setup a while loop, but how would I detect that I have reached the end of the array.</p>
  
  <p>I guess I want something like this [just need to figure out how to represent myArray.notEndofArray()]</p>
  
  <pre><code>index = 0;
  while(myArray.notEndofArray()){
    system.out.println(myArray(index));
    index++;
  }
  </code></pre>