while 循环 do while

public class WHILEdemo{
public static void main(String[] args){
int x = -1;
do{
System.out.println(x);
x++;
} while (x>=0&x<=5);
}
}

public class WHILEdemo{
public static void main(String[] args){
int x = -1;
do{
System.out.println(x);
x++;
} while (x>=0&x<=5);
}
}