Java Programming/Keywords/while
From Wikibooks, the open-content textbooks collection
while is a Java keyword.
It starts a looping block.
The general syntax of a while, using Extended Backus-Naur Form, is
while-looping-statement ::=whilecondition-clause single-statement | block-statement condition-clause ::=(Boolean Expression)single-statement ::= Statement block-statement ::={Statement [ Statements ]}
For Example:
while ( i < maxLoopIter )
{
System.println("Iter=" +i++);
}
See also: