+ 2
Whats the use of Enhanced For Loop?
Actually all it's doing is showing those integers
3 Antworten
+ 7
Enhanced for loop is useful when scanning the array instead of using for loop.
It is faster than for loop and prevent memory from wastage.
+ 6
to loop through each element of a collection INDIVIDUALLY.