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
I have a little helper class in all of my applications with methods like:
public static double arrayMax(double[] arr) { double max = Double.NEGATIVE_INFINITY; for(double cur: arr) max = Math.max(max, cur); return max; }