0
点赞
收藏
分享

微信扫一扫

ByteShortIntDemo


package com.shrimpking.t1;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Shrimpking
 * @create 2024/9/14 18:09
 */
public class ByteShortIntDemo
{
    public static void main(String[] args)
    {
        byte bMax = Byte.MAX_VALUE;
        byte bMin = Byte.MIN_VALUE;
        System.out.println("byte类型的最大值:" + bMax);
        System.out.println("byte类型的最小值:" + bMin);

        short sMax = Short.MAX_VALUE;
        short sMin = Short.MIN_VALUE;
        System.out.println("short类型的的最大值:" + sMax);
        System.out.println("short类型的最小值:" + sMin);

        int iMax = Integer.MAX_VALUE;
        int iMin = Integer.MIN_VALUE;
        System.out.println("Int类型的最大值:" + iMax);
        System.out.println("Int类型的最小值:" + iMin);

    }
}

举报
0 条评论