You are here: irt.org | FAQ | Java | Q4019 [ previous next ]
In Java, Multi dimensional arrays are actually arrays of arrays, these act and look like regular multidimentional array. To declare a multidimentional array variable each additional index is specified by a set of square brackets For example the following declares a two dimensional array called twoD
int twoD[ ][ ]= new int[4][5]; The left index determines the row and the right index determines the column, to use this you can refer to a particular value by specifying the indices like
|