首页 > 其他分享 >NormalCodeBlock

NormalCodeBlock

时间:2024-09-23 14:22:28浏览次数:3  
标签:int 代码 System println NormalCodeBlock public out


package com.shrimpking.t7;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Shrimpking
 * @create 2024/9/16 15:05
 */
public class NormalCodeBlock
{
    public static void main(String[] args)
    {
        //普通代码块
        {
            int x = 10;
            System.out.println("普通代码块内,x=" + x);
        }

        int x = 100;
        System.out.println("x= " + x);
    }
}

标签:int,代码,System,println,NormalCodeBlock,public,out
From: https://blog.51cto.com/u_15356972/12089178

相关文章