The file Parameters.java contains a program to test the variable length method average from Section 7.5 of the text. Notethat average must be a static method since it is called from the static method main.1. Compile and run the program. You must use the -source 1.5 option in your compile command.2. Add a call to find the average of a single integer, say 13. Print the result of the call.3. Add a call with an empty parameter list and print the result. Is the behavior what you expected?4. Add an interactive part to the program. Ask the user to enter a sequence of at most 20 nonnegative integers. Yourprogram should have a loop that reads the integers into an array and stops when a negative is entered (the negativenumber should not be stored). Invoke the average method to find the average of the integers in the array (send thearray as the parameter). Does this work?5. Add a method minimum that takes a variable number of integer parameters and returns the minimum of theparameters. Invoke your method on each of the parameter lists used for the average function.