class Car
{
public static void main(String[] args)
{
Integer a = Integer.MAX_VALUE+1;
Integer b = Integer.MIN_VALUE;
System.out.println(a);
System.out.println(b);
System.out.println((a).compareTo(b));
}
}
Java 小白 使用Integer类的compareTo()方法判断“Integer.Max_VALUE+1”,与Integer.Min_MIN_VALUE是否相等
最新推荐文章于 2023-06-07 15:36:17 发布