After several hours, I haven\'t made progress on making a method to output the average. I also need to make a sort class. Overall, the assignment needs.
Develop meth
To sort find min and max you can use TreeSet collection class. If you are using primitive type or a wrapper class, in this case no need to add any comparison logic. otherwise you need to implement comparator or comparable methods. Here is a example of TreeSet for min and max data http://www.programcreek.com/2009/02/a-simple-treeset-example/ . For calculating average i suggest you can use a local variable and for each time you add a number to TreeSet you can update the average. For eg when you add a new number p to current average value v, calculate latest average as v = (v*size + p)/++size;