<code>for (int[] row : m)</code> iterates
- A
Each column
- Bcheck_circle
Each row (which is itself an int[])
- C
All elements
- D
Compile error
Explanation
Outer for-each yields rows; nest another for-each for elements.
AP Computer Science A· difficulty 4/5
<code>for (int[] row : m)</code> iterates
Each column
Each row (which is itself an int[])
All elements
Compile error
Explanation
Outer for-each yields rows; nest another for-each for elements.
Want 10 more like this — adaptive to your weak spots?