We use enhanced for loop to iterated array in forward manner. But what advantages do we get when I implement enhanced for-loop.
What are advantages of enhanced for loop?
See enhanced for loop just make the body of normal for loop shorter. You can use any of these.