continuelabeltest.java
来自「JAVA编写的一些源代码」· Java 代码 · 共 23 行
JAVA
23 行
import javax.swing.JOptionPane;
public class ContinueLabelTest
{
public static void main(String args[])
{
String output="";
rownext:
for(int row=1;row<+5;row++)
{
output+="\n";
for(int column=1;column<=10;column++)
{
if (column>2*row-1)
continue rownext;
output+="*";
}
}
JOptionPane.showMessageDialog(null,output,"testing continue with a label",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?