4.3 2D Array
Skills
Determine code that would be used to complete code segments.
Determine code that would be used to interact with completed program code.
Write program code to create, traverse, and manipulate elements in 2D array objects.
Determine the result or output based on statement execution order in a code segment without method calls (other than output).
Determine the number of times a code segment will execute.
Write program code to create, traverse, and manipulate elements in 2D array objects.
Use test-cases to find errors or validate results.
Essential Questions
Why might you want to use a 2D array to store the spaces on a game board or the pixels in a picture, rather than a 1D array or ArrayList?
Why does the order in which elements are accessed in 2D array traversal matter in some situations?