First page Back Continue Last page Overview Graphics
For each
The syntax of the new statement is
for(type var : expression ) {...}
expression must be
- an array of type
type[] col = …;
- a collection containing elements of type
- an object that implements java.lang.Iterable
Hides the loop counter or Iterator