Write a Java program which defines unconstrained array of user defined length n
Write a Java program which defines unconstrained array of user defined length n (the value of n is to be taken
from a proper user’s input). Fill in the array with n random numbers. The application should (1) display all elements of the array, (2) display the sum of all elements, and (3) calculate the average of all elements.
Random numbers need to be generated inside the program making use of the prebuilt Java Random numbers available in the Maths library class. In the initial response itself, please provide comments and explanation of your solution