for-each loop – JAVA

for-each loop provides the facility to trace the element of array starting from 0 and those up to size of array. It always takes one step increment (i++/i=i+1). e.g. for(int …