public static int max(int... numbers) { int maximum = Integer.MIN_VALUE; for (int num : numbers) { if (maximum < num){ maximum = num; } // end if } // end for return maximum; } // end max