public class Goto1{
public static void main(String[] args) {
//break goto 实现
goto1:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
if (j == 3) {
break goto1 ;
}
System.out.println(j);
}
}
System.out.println("goto1: 标签");
}
}