public static int max(int[] array) { int max = array[0]; for (int i = 0; i < 20; i++){ if (array[i] > max); max = array[i]; } return max; }