title: reverse for loop for array countdown
body: <p>I get the error..</p>
  
  <pre><code>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
      at Reverse.main(Reverse.java:20). 
  </code></pre>
  
  <p>There is not wrong in the syntax so im not sure why when it compiles it gets an error?</p>
  
  <pre><code>public class Reverse {
  
  public static void main(String [] args){
      int i, j;
  
  
      System.out.print("Countdown\n");
  
      int[] numIndex = new int[10]; // array with 10 elements.
  
      for (i = 0; i&lt;11 ; i++) {
          numIndex[i] = i;// element i = number of iterations (index 0=0, 1=1, ect.)
      }
  
      for (j=10; j&gt;=0; j--){ // could have used i, doesn't matter.
          System.out.println(numIndex[j]);//indexes should print in reverse order from here but it throws an exception?
      }
  }
  </code></pre>
  
  <p>}</p>