阅读下面程序:import javax.swing.J
阅读下面程序:
import javax.swing.JOptionPane;
public class BreakLabelTest{
public static void main(String args[]){
String output="";
stop: {
for(int row=1; row<=10; row++){
for(int column=1; column<=5; column++){
if(row==5)
break stop;
output+="*";
}
output+="\n";
}
output+="\nLoops terminated normally";
}
JOptionPane.showMessageDialog(
Null, output, "用一个标志测试break语句",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}程序运行结果是( )。
答案
C