Question: i) Create an Integer array called INTArray with the size of 10; ii) Use For-loop and the method in Random Class to initialize INTArray, all
i) Create an Integer array called INTArray with the size of 10;
ii) Use For-loop and the method in Random Class to initialize INTArray, all values should be set in the range of 9- 30.
iii) Create a static method called sort, which is able to sort the elements in the array within a decremental order.
iv) Create a main method to test the correction of the above tasks.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
