Enhanced for loop on 2D: for (int[] row : grid) for (int val : row) — iterates through all elements row-by-row.
How to apply it: Use nested enhanced for loops for read-only traversal of a 2D array.
Course: AP Computer Science A · Unit: 2D Array
Practice questions about Enhanced for loop on 2D on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.