comp 4 Flashcards
Two-dimensional arrays have _____.
two or more columns of values.
The two dimensions represent the ____
height and width of the array.
Mathematicians also use two dimensional array and they call it ____
matrix or a table.
Tech-savvy people often call _______
2D arrays as spreadsheet
_______ often call 2D arrays as spreadsheet
Tech-savvy people
Declaration
Syntax: datatype[][] variable = new datatype[i][j];
i represents the ROWS
j represents the COLUMNS
Same as the 1D Array, if you do not provide values for the elements in a 2D array, to its default value.
?
Initialize a two-dimensional array with _____
values when it is created.
A method that receives a two-dimensional array uses_______
two bracket pairs following the data type in the parameter list of the method header.
There is ______ to insert numbers into the brackets because each passed array name is a starting memory address.
no need
The way you manipulate subscripts within the method determines
how rows and columns are accessed
We can also use the ____ in our 2D Array.
length field
a 2D array that has rows of different lengths.
Jagged array or ragged array
jagged array can also be called as
non-rectangular array
arrays with more than one dimension.
Multidimensional arrays