Java to find the maximum number of three examples to share
- 2020-04-01 03:04:42
- OfStack
import java.util.Arrays;
import java.util.Scanner;
public class MaxOf3_2 {
public static int getMaxNum(int...a){
Arrays.sort(a);
int maxNum = a[a.length-1];
return maxNum;
}
}