例如,这是不变的还是随着每次通过而改变?
for(int i = 0; i < InputStream.readInt(); i++)
最佳答案
for(int i = 0; // executed once
i < InputStream.readInt(); // executed before each loop iteration
i++ // executed after each loop iteration
) {
....
}
关于java - for 循环的 while 部分在 java 中是每次执行一次还是只执行一次?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4130563/