write a method that finds the maximum element in an array of double val-ues using the following header: public static double max(double[] array) write a test program that prompts the user to enter ten numbers, invokes this method to return the maximum value, and displays the maximum value. the program must then ask if the user wants to continue with another array of numbers. if the user enters "y", the program will start a new conversion. other-wise, it’ll stop.