A few minutes ago, I wrote: . . . That is a common error . . .
But I don't remember seeing it in a loop quite like that.
Always keep your loop headings nice and simple. You may come across things like this:
That sort of code was popular with C programmers 40 years ago because it is very concise, but it is very difficult to understand, so I won't even bother explaining it. I shall simply tell you to avoid that sort of code, even though it will happily run in Java®.