I've got a true/false question on my Java class homework:
for loops and while loops use the same stopping mechanism.
At first, I think its true because you can almost always write a for loop as a while loop and vise versa, on the other hand, it's false because the syntax for stopping is different. Anyone wish to shed some light on this? Thanks
for loops and while loops use the same stopping mechanism.
At first, I think its true because you can almost always write a for loop as a while loop and vise versa, on the other hand, it's false because the syntax for stopping is different. Anyone wish to shed some light on this? Thanks