Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.7 Additional Loop Examples

Description

In this lesson, students will explore the uses and properties that for and while loops have in common. Students will practice traversing ArrayLists using several types of loops.


Objective

Students will be able to:

  • Represent iterative processes using a for loop
  • Traverse ArraysLists using a for or while loop
  • Access elements in an ArrayList using iteration statements
  • Remove elements in an ArrayList