411 REFERENCE · Wikibooks
Java Programming/Keywords/for
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
is a Java keyword.
It starts a looping block.
The general syntax of a , using , is
for-looping-statement ::= condition-clause
single-statement | block-statement
condition-clause ::= ( before-statement; Boolean Expression ; after-statement )
single-statement ::= Statement
block-statement ::= { Statement [ Statement ] }
For example:
for ( int i=0; i < maxLoopIter; i++ ) {
System.println("Iter: " +i);
}
See also:
Java Programming/Keywords/while
Java Programming/Keywords/do
deep