What is a "for(;;)" loop used for?

for-loop, java, syntax

Solution

It's an infinite loop, an equivalent of this could be

`while(true)` which is definitely used a lot more than an infinite for loop.

But they both mean the same thing in this situation.

Problem

Possible Duplicate: Infinite loop application - for(;;) I am a Java developer, and I saw this in one of the classes: ``` for(;;){ something goes here } ``` What does this loop mean? When would we have to use it? Thanks

Original source