Content deleted Content added
rewrite/add references for all keywords starting with 'a', and fix grammar in other parts of page |
m Typo correction - You can help! (Assocat* -> Associat*) |
||
Line 42:
;<code id="do">[[do while loop#Java|do]]</code>
:The <code>do</code> keyword is used in conjunction with <code>[[#while|while]]</code> to create a [[do-while loop]], which executes a block of statements
;<code>[[Double precision|double]]</code>
Line 67:
;<code>[[for loop#Java|for]]</code>
:The <code>for</code> keyword is used to create a [[for loop]], which specifies a variable initialization, a [[boolean expression]], and an incrementation. The variable initialization is performed first, and then the boolean expression is evaluated. If the expression evaluates to <code>true</code>, the block of statements
:As of [[Java version history#J2SE 5.0 (September 30, 2004) (EOL)|J2SE 5.0]],{{Fact|date=December 2008}} the <code>for</code> keyword can also be used to create a so-called "[[for each loop|enhanced for loop]]", which specifies an [[array]] or {{Javadoc:SE|java/lang|Iterable}} object; each iteration of the loop executes the associated block of statements using a different element in the array or <code>Iterable</code>.<ref name="for" />
|