//ArrayMinMaxDemo.java
//Return the maximum and minimum values in the integer and character arrays.

public class ArrayMinMaxDemo
{
    public static void main(String args[])
    {
        Integer intNums[] =
        {
            3, 6, 2, 8, 6
        };
        Character chars[] =
        {
            'w', 'b', 'r', 'p'
        };

        ArrayMinMax<Integer> intObject = new ArrayMinMax<Integer>(intNums);
        ArrayMinMax<Character> charObject = new ArrayMinMax<Character>(chars);

        System.out.println("Max value in intNums: " + intObject.max());
        System.out.println("Min value in intNums: " + intObject.min());

        System.out.println("Max value in chars: " + charObject.max());
        System.out.println("Min value in chars: " + charObject.min());
    }
}
