代码如下
public class Test4_5 {
public static void main(String[] args) {
Test4_5 a=new Test4_5();
long res=a.getmax(5,6);
long res1=a.getmax1(6,7);
System.out.println(res1);
}
public long getmax(int a,int b){
return (a>b)? a:b;
}
public long getmax1(int res,int c){
return (res>c)? res:c;
}
}