AP Computer Science Amediummcq1 pt
To count columns, use
A.grid[0].length
B.grid.length
C.grid.size()
D.grid.columns()
The first row's length is the column count.
Agrid[0].length
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →