package com.shrimpking.t1;
/**
* Created by IntelliJ IDEA.
*
* @Author : Shrimpking
* @create 2024/9/14 18:48
*/
public class LongDemo
{
public static void main(String[] args)
{
long lMax = Long.MAX_VALUE;
System.out.println("Long的最大值:" + lMax);
int iMax = Integer.MAX_VALUE;
int iMin = Integer.MIN_VALUE;
System.out.println("int Max=" + iMax);
System.out.println("int Min=" + iMin);
//int型 + long型 = long型
System.out.println("long Max=" + (iMax + (long)1));
System.out.println("long Min=" + (iMin - 1L));
}
}
09-13
191
09-09
783