For loop in Java has changed a lot from the way it first appeared in jdk 1. Here is an example of the classical for loop : // Classic for loop for(int i=0;i<5;i++){ System.out.println(i); } Java 5 added the forEach loop that made looping with collections easier as it removed declaration […]