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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!