Question: Need help writing a program for #1 and #2 in Java! 1. Define a method to: (1) generate an integer array; (2) randomly initialize this
Need help writing a program for #1 and #2 in Java!

1. Define a method to: (1) generate an integer array; (2) randomly initialize this array with numbers in range [100, 200]; (3) return this array from the method. The method is declared as below: public static int / generateArray(int sizeOfArray); 2. Define a method to get the following statistic information from an integer array: (1) maximum element (2) minimum element; (3) average value of the input array. Return these 3 numbers. The method is declared as below: public static double [] getStatisticInfoOfArray(int / myArray)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
