Write a program (Dr Java) that includes thefollowing:
-
randomArray1d: A method that declares and populate asingle-dimensional integer array with random integers. The elementsshould range from 0 to the number of array members (numbers canrepeat in the array). This method should take as input a positiveinteger representing the length of the array and return thepopulated array as output.
-
ascendArray1d: A method to declare and populate asingle-dimensional integer array with random, ascending integers.The elements in the array should be positive and your method shouldcheck for this. This method should take as input a positive integerrepresenting the length of the array and return the populated
OROR