0

What are some real life examples where you have used the, enhanced for loop?

I cant think of scenarios when to use the, enhanced for loop.

25th Jan 2017, 6:23 PM
David
David - avatar
2 Answers
+ 1
u can use in data structures like linked list for traversing or iterating elements ex is adding elements before and after in array list
18th May 2017, 8:49 AM
Jayram
Jayram - avatar
0
when you want to print array elements?
25th Jan 2017, 6:59 PM
Leonida17st
Leonida17st - avatar