Practice ยท 4 of 4
Max, two shapes
CHALLENGE
Difficulty: beginner+25 XP
Implement two overloads: static int Max(int a, int b) and static int Max(int[] values). The array version returns the largest element and **throws ArgumentException** for null or empty input โ never a fake sentinel value.
Press Submit to check your solution.
Back to lesson: Practice: Method workshop