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
Here's a utility class providing min/max methods for primitive types: Primitives.java
min/max
int [] numbers= {10,1,8,7,6,5,2}; int a=Integer.MAX_VALUE; for(int c:numbers) { a=c