ITeye博客

for循环,即使不满足,最后也会递增掉

dmwdmc · 2013-06-18 20:29 · core JAVA jvm · 编程语言 · Markdown

public class Test {
	public static void main(String[] args) {

		int i=0;
		for( i=1;i<=20/3;i++){
				System.out.println(i);
		}
		System.out.println(i);

            }
}

输出: 1 2 3 4 5 6

7

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。