breakcontinue.java
来自「java的一些小型程序代码」· Java 代码 · 共 27 行
JAVA
27 行
/*
* Created on 2007/03/23
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author BFJ1
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class BreakContinue {
public static void main(String[] args) {
for (int d=1;d<=20;d++)
{
if(d%2==0)
continue;
//break;
else
System.out.print(d +" ");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?