- class Day7 {
- public static void main(String[] args) {
- ok:
- for (int i = 0 ;i<6;i++ ) {
- for (int j = 0;j <8 ;j++ ) {
- if (j<3) {
- System.out.println("完了");
- return ;//break ; continue ; break ok; 一次输入看打印结果
- }else
- System.out.println("好了");
- }
- System.out.println("Hello World!");
- }
- System.out.println("欧了");
- }
- }
复制代码
我自己的一点所学所感而已 见笑了 |
|