首页 > 其他分享 >标签

标签

时间:2023-02-14 00:22:49浏览次数:39  
标签:String int 标签 void args Hello public

public class Test {
    public static void main(String[] args){
        System.out.println("Hello!");
        Lo:for (int i = 0; i <= 3; i++){
            for (int j = 0;j <= 3; j++){
                if(j == 3)break Lo;//结束Lo标签的循环体
                else System.out.println("i="+i+" j="+j);
            }
        }
    }
}
public class Test {
    public static void main(String[] args){
        System.out.println("Hello!");
        Lo:for (int i = 0; i <= 3; i++){
            for (int j = 0;j <= 3; j++){
                if(j == 2)continue Lo;//结束Lo标签的循环体这一轮循环,开始下一轮Lo标签下的循环
                else System.out.println("i="+i+" j="+j);
            }
        }
    }
}

标签:String,int,标签,void,args,Hello,public
From: https://www.cnblogs.com/TFOREVERY/p/17118373.html

相关文章