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
In Java 8+ you could use IntStream and IntSummaryStatistics like
int[] arr = { 3, 1, 2 };
IntSummaryStatistics stats = IntStream.of(arr).summaryStatistics();
System.out.printf("Min: %d, Max: %d, Average: %.2f%n", //
stats.getMin(), stats.getMax(), stats.getAverage());
IntStream.of(arr).sorted().forEach(System.out::println);