title: In Java, why do we use "N.length-1" in arrays? What it really means?
body: <pre><code>int[] N = {0,1,2,3,4,5,6,7,8,9,10};
  
  for (int i = 0; i&lt;N.length-1; i++){
      System.out.print.(N[i] + &quot;,&quot;);
  }
  </code></pre>
  <p>In the example above, why do we use N.length-1!!! is it because it's zero based index? so 10 = 11-1? This is very confusing!!!</p>