1) Create a method that uses an array as parameter, and ask the user to fill the array with grades(assume double), which should go 1-100(validation)Use this header: public static void getGrades(double[] myGrades)2) Create a method that takes an array as parameter and calculate the average of those grades(return)Use this header: public static double getGradeAvg(double[] myGrades)3) Make a method that show you the grades on the screenpublic static void showGrades(double[] myGrades)4) In your main method, create an array of 5 doubles with use of the methods you implemented to get the grades, calculate and show the average, and show each individual grade. Even if you could not make the methods you can still use the headers to do this part.