Which of the following statements creates a multidimensional array with 3 rows, where the first row contains 1 element, the second row contains 4 elements and the final row contains 2 elements?

a. int[][] items = {{1, null, null, null}, {2, 3, 4, 5}, {6, 7, null, null}};
b. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}};
c. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}, {});
d. int[][] items = {{1}, {4}, {2}};

b. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}};

Computer Science & Information Technology

You might also like to view...

SQL stands for ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A 100 pair cable is typically used to connect:

A. telephony distribution. B. computer labs with more than 20 computers. C. security cameras. D. businesses with more than 75 computers

Computer Science & Information Technology