Multidimensional Arrays
In Java multidimensional arrays are original arrays of arrays. These as you may expect, look and act such as regular multidimensional arrays. Moreover, as you will see, there is a couple of subtle difference. For declare a multidimensional array variable, specify every additional index using another set of square brackets. For instance, the following declares a two dimensional array variable called 2D.
int twoD [ ] [ ] = new int [4] [5];
This allocates a 4 through 5 array and assigns it to twoD. Within this matrix is implemented as an array of arrays of int. theoretically; this array will look like the one display in figure