AP Computer Science Amediummcq1 pt
To count rows, use
A.grid.length
B.grid[0].length
C.grid.size()
D.grid.rows()
length counts the rows.
Agrid.length
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →