0
How enhanced loop statement works??
4 Antworten
+ 4
The sentence looks like this:
for(obj i : array).
It goes through each element of array and assigns the value of the element to i.
This is a good way to implement a loop without having to know the length of the array
0
How value of i is changing??
0
still I didn't get how I value become a change in this loop..
0
it doesn't change , it take the value from the array