六、JAVA_int的最大值或最小值

一、效果如下

package test_20190808_001;

public class test_20190808_001 {
    public static void main(String args[]) {
        int max = Integer.MAX_VALUE;//最大值
        int min = Integer.MIN_VALUE;//最小值
        System.out.print(max);
        System.out.print("|");
        System.out.println(min);
    }
}

猜你喜欢

转载自www.cnblogs.com/tianpan2019/p/11359124.html