Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.2 Introduction to Arrays

Description

In this lesson, students learn about arrays and make their first arrays. Arrays are one of the main data structures students will need to understand. This lesson introduces the idea, shows students how to create them, and explains how to access data elements to retrieve and update values.


Objective

Students will be able to:

  • Initialize an Array of various types
  • Access items in the list with indexes
  • Change the value of a list item using indexes
  • Find out the length of any array