💻ap computer science a review

Enhanced For Loop (For-each Loop)

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

The enhanced for loop (or for-each loop) is a simplified loop structure introduced in Java that allows easy iteration over arrays or collections without explicitly managing an index or iterator.

"Enhanced For Loop (For-each Loop)" also found in:

2,589 studying →