2D - 2D Array Overview

APCompSci_OverviewBanner.png

2D Array

Introduction

2D arrays are collections of arrays or ArrayLists. Now that we have learned about arrays and ArrayLists we can work with multiples of them in a matrix or table. The AP Exam will include one free response question that deals with 2D arrays. This module will show you how to create 2D arrays and how to traverse them just as we did previously with the other data structures. We will also look at several past free response questions dealing with all data structures, arrays, ArrayLists, and 2D arrays.

Module Lessons Preview

In this module, we will study the following topics:

2D Arrays: In this lesson, you will learn how to declare and initialize a 2D array. For this course, 2D arrays will be accessed by the row first and then the column.

Traversing 2D Arrays: This lesson will show you the most common way to traverse a 2D array. We will also explore more creative ways to traverse matrix data as that may be useful in different algorithms for free response questions.

APCompSci_OverviewBottom.png  IMAGES CREATED BY GAVS