Content deleted Content added
Line 567:
===Iteration statements===
Iteration statements are statements that are repeatedly executed when a given condition is evaluated as true. Since [[J2SE 5.0]], Java has four forms of such statements. Note that the condition must have type boolean or Boolean, meaning C's<syntaxhighlight lang="c">
while (1) {
doSomething();
}
</syntaxhighlight>results in a compilation error.
====<code>while</code> loop====
|