<分区>
出于某种原因,每当我这样做时:
public class Main {
public static void main(String[] args) {
boolean c = true;
int i = 0;
while (i < 10) {
System.out.println(c);
c = false;
i++;
}
}
}
每次都打印 true
。
编辑: 我跑了几次,比第 5 次成功了!我很困惑。我想我构建错了……我猜。