50,541
社区成员
发帖
与我相关
我的任务
分享
int a=3;
int b=5;
System.out.println("The big one is "+Math.max(a, b));
System.out.println("The small one is "+Math.min(a, b));
int a=3;
int b=5;
int res=new Integer(a).compareTo(new Integer(b));
switch (res) {
case -1:
System.out.println("a is less than b");
break;
case 0:
System.out.println("a is equal b");
break;
case 1:
System.out.println("a is big than b");
break;
default:
break;
}