Glossaria.net

Glossary Java / Term

multidimensional array

Java also supports multidimensional arrays. These are implemented as arrays-of-arrays, as they are in C. You specify a variable as a multidimensional array type simply by appending the appropriate number of [] pairs after it. You allocate a multidimensional array with new by specifying the appropriate number of elements (between square brackets) for each dimension. For example:
byte TwoDimArray[][] = new byte[256][16];

Permanent link multidimensional array - Creation date 2022-01-03


< Mosaic Glossary / Java multiple inheritance >