package mdthob;标签:num1,num2,int,max,引用,ax,方法,public From: https://www.cnblogs.com/xiaoxiaodeyan/p/17116831.html
public class bidaxffa {
public static void main(String[] args) {
int max = max(20,20);
System.out.println(max);
}
public static int max(int num1,int num2){
int ax = 0;
if(num1==num2){
System.out.println("没得玩咯");
return 0; //终止方法
}
if(num1>num2){
ax=num1;
}
else {
ax=num2;
}
return ax;
}
}