It\'s trivial to write a function to determine the min/max value in an array, such as:
/** * * @param chars * @return the max value in the array of chars
Pass the array to a method that sorts it with Arrays.sort() so it only sorts the array the method is using then sets min to array[0] and max to array[array.length-1].
Arrays.sort()
array[0]
array[array.length-1]