Copy the code code as follows: import java.util.Arrays; import java.util.Scanner; public class MaxOf3_2 { /* * Get the largest integer */ public static int getMaxNum(int...a){ Arrays.sort(a); int maxNum = a[a.length-1]; return maxNum; } }