Question: Task 1 : Creating and placing random values into 2 arrays: a . Randomly generate two random numbers size 1 and size 2 - between

Task 1: Creating and placing random values into 2 arrays:
a. Randomly generate two random numbers size1 and size2- between 1 and 10, inclusive.
i. The values size1 and size2 will be used in c and d as the size of each array.
b. Display the random values in size1 and size2
c. Generate size1 random integers between 1 & 25(inclusive) and write them to the 1st array
d. Generate size2 random integers between 1 & 25(inclusive) and write them to the 2nd array
e. Sort each array using the Arrays.sort() method.
f. Display the values in each array in sorted order.

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!