0
can i use this enhanced for loop all. instead of using for loop
java
11 Answers
+ 1
it is good when u want to traverse some element.
+ 1
travel or (here)iterate something
+ 1
it is used when u want to iterate through a given list u cannot put increment or decrement or other statements in it.
+ 1
no they can be used outside arrays as well.
+ 1
right and u need to go through them.
+ 1
you can have your own class implement iterable interface and define your own iterator in it so it too can be iterated in for loop like java collection classes. pretty cool
0
transverse means??
0
I didn't get uđ
0
are they can be used only in arrays of elements ??
0
oh this is used when there is group of elements right
0
thank u so much for u r help