News

The author of this tip is John Zukowski, president and principal consultant of JZ Ventures, Inc. The enhanced for-loop is a popular feature introduced with the Java SE platform in version 5.0.
Enhanced for loop. Java 5 introduced the enhanced for loop as a more compact way to iterate over a collection. Instead of explicitly obtaining the collection’s iterator and invoking its hasNext ...