Please enable JavaScript to use CodeHS

AP CSA: VAR-2.C.4

CodeHS Lessons

Program code written using an enhanced for loop to traverse and access elements in an array can be rewritten using an indexed for loop or a while loop.

12.3 Enhanced for Loop for Arrays
13.3 Enhanced for Loop for Arrays
6.3 Enhanced for Loop for Arrays
7.4 Enhanced For Loops
5.4 Enhanced For Loops