0
A FOR loop (enhanced for loop) can only be used with arrays?
Java. For example, for(int i:arr){}
2 Answers
+ 1
Nop, it's possibile to use this loop also for Collection objects and derivates.
0
no,other loops can also be used with arrays, for example the do while loop can also be used