int a;
for(a=0;a<10;a++){
if(a%2!=0)continue;
System.out.println(a);
}
像这样,循环变量a必须在括号里面初始化。
发表评论:取消回复
名称(*)
邮箱
网址