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