- 1
Hi everyone, please what is the difference between while loops and for loops in java I also don't know the meaning of iteration
3 ответов
+ 2
iteration means repeating steps..
Search bar gives good results! hope these helps..
https://www.sololearn.com/Discuss/568704/?ref=app
https://www.sololearn.com/Discuss/1086229/?ref=app
https://www.sololearn.com/discuss/279265/?ref=app
https://www.sololearn.com/discuss/1942011/?ref=app
https://www.sololearn.com/discuss/94315/?ref=app
https://www.sololearn.com/discuss/2065905/?ref=app
https://www.sololearn.com/discuss/2058032/?ref=app
+ 2
for() usually defines variable for a counter
while() not
iteration is one cycle in code, which is repeatedly executed in a loop,
ie when it 'walk' through some data structure and takes elements, one per loop
+ 1
zemiak Thanks