java求两个数中的大数 java中的max函数在Math中 应用如下: int a=34; int b=45; int ans=Math.max(34,45); 那么ans的值就是45. 转载于:https://www.cnblogs.com/Renyi-Fan/p/7643799.html