+ 2

does exist a foreach loop in java

1st Aug 2016, 4:09 AM
Houssem Trabelsi
Houssem Trabelsi - avatar
6 ответов
+ 3
Yup, written like for(variable_type variable_name : collection_name)
1st Aug 2016, 4:59 AM
James
James - avatar
+ 1
an enhanced for loop is a for each loop. Some languages, like c# use foreach while java just does for.
1st Aug 2016, 5:02 AM
James
James - avatar
0
Yes
1st Aug 2016, 4:49 AM
Qutaiba salih mohaisin
Qutaiba salih mohaisin  - avatar
0
thts calles an enhanced for loop
1st Aug 2016, 4:59 AM
Suhail Pappu
Suhail Pappu - avatar
0
yess
5th Aug 2016, 8:13 PM
sachin tomar
sachin tomar - avatar
0
thnx boys :)
5th Aug 2016, 10:33 PM
Houssem Trabelsi
Houssem Trabelsi - avatar