Question: use java Write a method that accepts an array of integers, and fills up the array with random numbers. You can either use Math.random() or
use java
Write a method that accepts an array of integers, and fills up the array with random numbers. You can either use Math.random() or the Random class. Write a method that accepts an array of integers and sorts the array. In main, you should:
instantiate an array of integers
call the method to fill up the array with random numbers
print the array
call the method to sort the array
and print the array again.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
