Back to Unit

Unit 6: Arrays

AP Computer Science A — Note Packet

0 of 5 blanks filled

Key Terms

Array

A data structure that stores a ______ number of elements of the ______ data type.

0-indexed

In Java, arrays start counting elements from index ______, meaning the first element is at this position.

Traversing

The process of systematically visiting ______ element in an array, one by one, usually with a loop.

Enhanced `for` loop (for-each loop)

A concise loop structure used to iterate through all elements of an array, primarily for ______-______ access, when the index is not needed.

2D Array

An array where each element is ______ array, creating a grid-like structure with rows and columns.

1 / 5