Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 6.3 Enhanced for Loop for Arrays

Description

In this lesson, students will take a look at enhanced loops. An enhanced for loop is an alternate method to traverse an array instead of using for or while loops. This lesson corresponds with AP Computer Science A topic 6.3.


Objective

Students will be able to:

  • Traverse the elements in a 1D array object using an enhanced for loop