struct-BreakDemo

时间:2022-05-27 21:26:02   收藏:0   阅读:18
package com.kuang.struct;

public class BreakDemo {
    public static void main(String[] args) {
        int i = 0;
        while (i<100){
            i++;
            System.out.println(i);
            if(i==30){
                break;
            }
        }

        System.out.println("123");
    }
}

 

原文:https://www.cnblogs.com/iamaghao/p/15313906.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!