Question: Write a method fillArray() that takes three integers: (s, min, max), and returns an array of size s having random integers with values between
Write a method fillArray() that takes three integers: (s, min, max), and returns an array of size s having random integers with values between min and max. Write a method fillTwoDArray() that takes four integers: rows, cols, min, and max. It returns a 2D array with the specified size, and random values between min and max. You can use this method in any of the subsequent programs to generate arrays to be used to test your methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
