首页 > 其他分享 >ContinueLabelDemo

ContinueLabelDemo

时间:2024-09-24 09:52:14浏览次数:10  
标签:int System ++ println ContinueLabelDemo public out


package com.shrimpking.t2;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Shrimpking
 * @create 2024/9/15 15:34
 */
public class ContinueLabelDemo
{
    public static void main(String[] args)
    {
        for (int i = 0; i < 2; i++)
        {
            System.out.println("最外层循环" + i);
            loop:
            for (int j = 0; j < 2; j++)
            {
                System.out.println("中间层循环" + j);
                for (int k = 0; k < 2; k++)
                {
                    System.out.println("最内层循环" + k);
                    continue loop;
                }
            }
        }
    }
}

标签:int,System,++,println,ContinueLabelDemo,public,out
From: https://blog.51cto.com/u_15356972/12097182

相关文章