public class hellojava {
public static void main(String[] args) {
for (int i=0;i<=10;i++) {
if (i%2 == 0) {}
continue;
}
System.out.println(i);
i报错
i cannot be resolved to a variable
在局部变量i的作用范围之外调用i,就是这种错误