|
Executes a statement block once, and then repeats execution of the loop until a condition expression evaluates to false.
do
statement
while (expression) ;
statement
The statement to be executed if expression is True. Can be a compound statement.
expression
An expression that can be coerced to Boolean True or False. If expression is True, the loop is executed again. If expression is False, the loop is terminated.
The value of expression is not checked until after the first iteration of the loop, guaranteeing that the loop is executed at least once. Thereafter, it is checked after each succeeding iteration of the loop.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.