1. Create a program that does the following in Java
(a) In the main, the program will ask the user for the size ofthe array. The main will create an array
of integers of that size.
(b) The main will call the method
PopulateArray(
int
[] A)
which will ask the user for each entry of the array one by oneand insert the input values into the
array.
(c) The main will then call a method to print the array out tothe screen with some spaces between
the entries. You may wish to use the PrintArray method from theOn Your Own Programming
exercise below. This one uses a “trick” to line
OR
OR