Looping Constructs, do-while
Syntax:
[initialization]
do {
[statements]
[iteration]
} while ( boolean-expression )
Example:
public static void main(String[] argv) {
int n = 0;
do {
System.out.println(argv[n]);
n++;
} while (n < argv.length)
}
Previous slide
Next slide
Back to first slide
View graphic version