I know this question has already been asked multiple times, but my teacher is saying that in Java you should (almost) never use the while loop and use instead the for loop.
So, I haven't find anything that goes in this way. Maybe she saw some kind of Internet nonsense or maybe, long time ago in an old version.
Has the while
loop (or has had in some old version) any issues that makes the for
loop more efficient?