August 29, 2013 · 1 min read
###### **for loop** is used to iterate any data in Java as in most of the languages. To make the iteration of elements easier, the general for loop can be replaced with a new loop known as **foreach Java** loop in [JDK 1.5](http://way2java.com/java-versions-2/jdk-1-5-java-se-5-version/). But this new foreach Java loop should be used only in [arrays](http://way2java.com/arrays/all-array-operations-at-a-glance/) and [collections classes](http://way2java.com/collections/java-collections-framework/) only.
July 6, 2011 · 4 min read
## Data Structures JDK 1.5 Features