public class two2_73
{
public static void main(String a[])
{
int j = 0 ;
do {
if(j == 5)
continue ;
System.out.print(j + " ") ;
j++ ;
}
while(j < 10) ;
}
}怎么上面的程序运行后结果为:
0 1 2 3 4
然后鼠标就停在4那里了!运行的结果不是 0 1 2 3 4 5 6 7 8 9 吗?
怎么会这样呢?
请问大家!!!
谢谢!!!
{
public static void main(String a[])
{
int j = 0 ;
do {
if(j == 5)
continue ;
System.out.print(j + " ") ;
j++ ;
}
while(j < 10) ;
}
}怎么上面的程序运行后结果为:
0 1 2 3 4
然后鼠标就停在4那里了!运行的结果不是 0 1 2 3 4 5 6 7 8 9 吗?
怎么会这样呢?
请问大家!!!
谢谢!!!
{
public static void main(String a[])
{
int j = 0 ;
do {
System.out.print(j + " ") ;
j++ ;
}
while(j < 10) ;
}
}不需要用 if(j == 5)
continue ;
为什么没有分数哦
public static void main(String[] args) {
int j = 0;
do {
if (j == 5)
continue;
System.out.print(j + " "); } while (j++ < 10);
}