< Java Programming < Keywords 
      for is a Java keyword.
It starts a looping block.
The general syntax of a for, using Extended Backus-Naur Form, is
for-looping-statement ::=forcondition-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:
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.