// Demonstrate the use of myArray.length - 1
class ArrayTest
{
  public static void main(String[] args)
  {
      int[] myArray = { 10, 20, 30 };

      for(int i = 0; i <= myArray.length; i++)
      {
         System.out.println(myArray[myArray.length - 1]); // OK
      }
    }
}
