- 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

20th Apr 2022, 2:31 PM
Kekusina
Kekusina - avatar
3 Respostas
+ 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
20th Apr 2022, 3:12 PM
zemiak
+ 1
zemiak Thanks
10th Aug 2023, 1:00 PM
Kekusina
Kekusina - avatar