首页 > 其他分享 >BreakLabelDemo

BreakLabelDemo

时间:2024-09-24 09:51:34浏览次数:13  
标签:int BreakLabelDemo System ++ println public out


package com.shrimpking.t2;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Shrimpking
 * @create 2024/9/15 15:27
 */
public class BreakLabelDemo
{
    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);
                    break loop;
                }
            }
        }
    }
}

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

相关文章