Traversing 2D Arrays using Enhanced for Loops

3 months ago
52

This computer science video covers a tutorial on how to traverse 2D arrays using enhanced for loops. 2D arrays can be created and indexed in a similar way to 1D arrays. Effectively, they can be visualised as arrays of arrays. The tutorial also demonstrates how 2D arrays can be traversed in row-major order. An example of a 2D matrix array is demonstrated in Java using the Eclipse IDE.

Loading comments...