Please enable JavaScript to use CodeHS

Arizona Software and App Design II

Lesson 8.9 2D Arrays

Description

In this lesson, students will learn about 2D arrays. The will also first be exposed to the idea of a nested loop, which will be used to access all the elements in a 2D array.

2D arrays are a key idea for students to grasp. They should spend time to fully understand how the loops execute. They can further supplement these concepts through the Traversing 2D Arrays exercises in the Supplemental Material.


Objective

Students will be able to:

  • Explain how 2D arrays are created by making an array of an array
  • Represent collections of related primitive or object reference data using two-dimensional (2D) array objects.
  • Traverse 2D arrays using nested loop statements.