while schleife in java umschreiben code example
Example 1: java do while schleife
int i = 0;
do{
i++;
System.out.println(i);
}while(int i < 9);
Example 2: java while schleife
int i = 0;
while(i < 9){
i++;
System.out.println(i);
}
int i = 0;
do{
i++;
System.out.println(i);
}while(int i < 9);
int i = 0;
while(i < 9){
i++;
System.out.println(i);
}