Statement Control Java Tutorial

The general form of the for-each version of the for is shown here:

for(type itr-var : iterableObj) statement-block
The object referred to by iterableObj must be an array or
an object that implements the new Iterable interface.