+ 2
does exist a foreach loop in java
6 Answers
+ 3
Yup, written like
for(variable_type variable_name : collection_name)
+ 1
an enhanced for loop is a for each loop. Some languages, like c# use foreach while java just does for.
0
Yes
0
thts calles an enhanced for loop
0
yess
0
thnx boys :)