|
Die "nicht abweisende" do-Schleife wird mindestens einmal durchlaufen.
Einfache do-Schleife
public class Test {
static public void main (String args[]) {
int x=1;
do {
System.out.print(x);
x++;
} while (x<5);
}
}
Die do-Schleife wird einmal durchlaufen.
...
int x=1;
do {
System.out.print(x);
x++;
} while (x<1);
...
|