Java 编程/关键字/while
外观
while
是一个 Java 关键字。
它开始一个循环块。
while-looping-statement ::=while
condition-clause single-statement | block-statement condition-clause ::=(
Boolean Expression)
single-statement ::= Statement block-statement ::={
Statement [ Statements ]}
例如
while ( i < maxLoopIter )
{
System.out.println("Iter=" +i++);
}
|
另请参见