public class MinMaxUtil { public static int min = 0; public static int max = 0; public static int min(int a, int b){ return Math.min(a, b); } public static int min(int a, int b, int c){ if (a < b && a < c) min = a; if (b < a && b < c) min = b; if (c < a && c < b) min = c; return min; } public static int min(int a, int b, int c, int d) { if (a < b && a < c && a < d) min = a; if (b < a && b < c && b < d) min = b; if (c < a && c < b && c < d) min = c; if (d < a && d < b && d < c) min = d; return min; } public static int min(int a, int b, int c, int d, int e){ if (a < b && a < c && a < d && a < e) min = a; if (b < a && b < c && b < d && b < e) min = b; if (c < a && c < b && c < d && c < e) min = c; if (d < a && d < b && d < c && d < e) min = d; if (e < a && e < b && e < c && e < d) min = e; return min; } public static int max(int a, int b){ return Math.max(a, b); } public static int max(int a, int b, int c){ if (a > b && a > c) max = a; if (b > a && b > c) max = b; if (c > a && c > b) max = c; return max; } public static int max(int a, int b, int c, int d){ if (a > b && a > c && a > d) max = a; if (b > a && b > c && b > d) max = b; if (c > a && c > b && c > d) max = c; if (d > a && d > b && d > c) max = d; return max; } public static int max(int a, int b, int c, int d, int e){ if (a > b && a > c && a > d && a > e) max = a; if (b > a && b > c && b > d && b > e) max = b; if (c > a && c > b && c > d && c > e) max = c; if (d > a && d > b && d > c && d > e) max = d; if (e > a && e > b && e > c && e > d) max = e; return max; } } The max() methods should return the maximum of the passed numbers. - fail of this test