Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions