Specifications
Sun Services
Java™ Programming Language
Module 4, slide 26 of 31
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Looping Statements
The do/while loop:
do
<statement_or_block>
while (
<test_expr>
);
Example:
int i = 0;
do {
System.out.println(i + " squared is " + (i*i));
i++;
} while ( i < 10 );










