Describe how to visualize the following array. How would you identify the location of the 99 that is stored in the array?
?
int[][] someNumbers = {{8, 9, 10, 11},
{1, 3, 12, 15},
{5, 9, 44, 99} };

What will be an ideal response?

The someNumbers array contains three rows and four columns. You contain the entire set of values within a pair of curly braces. The first row of the array holds the four integers 8, 9, 10, and 11. Notice that these four integers are placed within their own set of curly braces to indicate that they constitute one row, or the first row, which is row 0. Similarly, 1, 3, 12, and 15 make up the second row (row 1), which you reference with the subscript 1. Next, 5, 9, 44, and 99 are the values in the third row (row 2), which you reference with the subscript 2. The value 99 is referenced bysomeNumbers[2][3].

Computer Science & Information Technology

You might also like to view...

Widgets that are created by third-party developers are known as

a. internal applications. b. moderated applications. c. profile applications. d. external applications.

Computer Science & Information Technology

The rights to a literary work or property in the public domain are owned by the public at large

Indicate whether the statement is true or false

Computer Science & Information Technology