February 2014
Beginner
1248 pages
62h 25m
English
• Multidimensional arrays with two dimensions are often used to represent tables of values consisting of information arranged in rows and columns.
• A two-dimensional array (p. 272) with m rows and n columns is called an m-by-n array. Such an array can be initialized with an array initializer of the form
arrayType[][] arrayName = {{row1 initializer}, {row2 initializer}, ...};
• Multidimensional arrays are maintained as arrays of separate one-dimensional arrays. As a result, the lengths of the rows in a two-dimensional array are not required to be the same.
• A multidimensional array with the same number of columns in every row can be created with an array-creation expression ...
Read now
Unlock full access