$25
Write a generic class with a type parameter constrained to any type that implements Comparable. The constructor should accept an array of such objects. The class should have methods that return the highest and lowest values in the array. Write a second class with a main method to test.
Chapter 18, Programming Challenge 7. Number Analyzer
Write a generic class with a type parameter constrained to the Number class or any subclass of Number. the constructor should accept an array of such objects. the class should have methods that return the highest and lowest values in the array, the total of the elements, and the average value of all the elements. Write a second class with a main method to test.
Chapter 18, Programming Challenge 8. Generic Random Permutation
Write a generic class with a generic method that returns a random permutation of the array list passed to it as a parameter (i.e., shuffle). Write a second class with a main method to test.