Write two overloaded methods that return the average of an array with the following headers: public static int average(int array)public static double average(double array). Write a test program that prompts the user to enter ten double values, invokes this method, and displays the average value.
Breaking it down
Swaying a bit from the requirements the program will still ask for the user to input ten numbers. Instead of writing an imperative methods to calculate the mean of an array we will use java 8 to do so.