ARR - Array Overview
Array
Introduction
In this module we will learn how to store large volumes of data. The programming structure we use for this is called an array, which comes from the concept of having an array of data. We will learn how to use arrays as objects and as method parameters.
Key Terms
array – A collection of values of the same type.
bounds error – Trying to access an array element that is outside the legal range.
for each loop - Another option for traversing through a collection of items. Used in place of a standard for loop.
index/indices – An integer indicating the location of data.
null – An uninitialized, undefined, empty, or meaningless value.
Module Lessons Preview
In this module, we will study the following topics:
Array Creation and Success: This lesson focuses on data structures which are used to represent collections of related data using a single variable rather than multiple variables.
Traversing Arrays: Using a data structure along with iterative statements with appropriate bounds will allow for similar treatment to be applied more easily to all values in the collection.
Enhanced for Loop for Arrays: This lesson introduces another way to iterate arrays. It will also provide practice using standard array algorithms. These algorithms will be used again in future lessons.
IMAGES CREATED BY GAVS