Tag: java for each

What is foreach Java loop?

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.

JDK 1.8 Features

August 10, 2013 · 6 min read
#### Following are JDK 1.8 Features

Arrays Enhanced for loop

June 24, 2011 · 2 min read
As the new Java versions are released, the coding becomes easier and Java becomes more robust language to practice, For example JDK 1.5 introduced a new for loop with which iteration of elements of arrays and data structures becomes easier. Start reading this tutorial on "Arrays Enhanced for loop".