I am trying to help my brother with his homework for
Java. This is what the assignment says
In this assignment, you will develop an array utility class and use the class in your program. The array utility class is called ArrayUtil; it contains the following methods:
•arrayRnd: takes an integer array as its input parameter, fills the array with randomly generated integers, which are in the range of 1 to 1000.
•arrayEven: takes an integer array as its input parameter, fills the array with randomly generated even integers, which are in the range of 1 to 1000.
•arrayOdd: takes an integer array as its input parameter, fills the array with randomly generated odd integers, which are in the range of 1 to 1000.
•arrayMax: takes an integer array as its input parameter, and returns the maximum number in the array.
•arrayMin: takes an integer array as its input parameter, and returns the minimum number in the array.
•arrayAvg: takes an integer array as its input parameter, and returns the average of the numbers in the array.
•arrayDiv: takes an integer array as its input parameter, and fills the array with randomly generated integers that are divisible by 3. These random numbers are in the range of 1 to 1000.
•arrayDisplay: takes an integer array as its input parameter, and displays its components.
And this is what he and I have came up with. Does anyone have any suggestions to improve it?
It works properly and I get the desired results, but I was wondering if there was anything I could do differently that would improve it.