study guides for every class

that actually explain what's on your next test

Enhanced For Loop (For-each Loop)

from class:

AP Computer Science A

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.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.