Array index is starting at array index 0 : Array Dimension « Java Source And Data Type « SCJP






public class MainClass {

  public static void main() {
    long[] squares;
    squares = new long[6000];
    for (int i = 0; i < 6000; i++) {
      squares[i] = i * i;
    }
  }
}








1.18.Array Dimension
1.18.1.Array index is starting at array index 0
1.18.2.To refer to the size of an array, use .length member variable
1.18.3.An irregular multi-dimension array
1.18.4.The outermost array is a single-dimension array containing references
1.18.5.Multidimensional arrays may be specified with bracket sets appearing on either or both sides of the array name
1.18.6.Multidimensional arrays may be initialized by nesting array initializers
1.18.7.Specify the length of an array dimension by putting an integer within a bracket set.