import java.util.Scanner; //扫描器
public class T1{
public static void main(String[] args){
Scanner sc=new Scanner( System.in );
System.out.println("input the first number");
int a=sc.nextInt();
System.out.println("input the second number");
int b=sc.nextInt();
System.out.println("input the third number");
int c=sc.nextInt();
System.out.println( Max(Max(a,b),c) );
int x=0,y=0;
}
public static int Max(int x, int y){
return x>y?x:y;
}
}
public class T1{
public static void main(String[] args){
Scanner sc=new Scanner( System.in );
System.out.println("input the first number");
int a=sc.nextInt();
System.out.println("input the second number");
int b=sc.nextInt();
System.out.println("input the third number");
int c=sc.nextInt();
System.out.println( Max(Max(a,b),c) );
int x=0,y=0;
}
public static int Max(int x, int y){
return x>y?x:y;
}
}
虽然很简单的一个判断三个数,但是很高兴自己能写好~~~