Aggressive! 2021-02-07 17:56 采纳率: 30%
浏览 105

为社么输出值是ture?

public class Test2 {
    public static void main(String[] args){
        //numbermax(10,20);
        int result=numbermax(10,200);
        System.out.println(result);
        System.out.println(numbermax(20,60));
    }
    public static int numbermax(int a,int b){
        if (a>b){
            return a;
        }else {
            return b;
        }
    }
}
  • 写回答

8条回答 默认 最新

  • changyucheng333 2021-02-07 17:59
    关注

    你在说什么,200,60

     

    评论

报告相同问题?