Question: Implement a library class CollectionUtilities containing the following class methods: ( 2 6 points ) a ) Class method displayMinMax receives a double [ ]
Implement a library class CollectionUtilities containing the following class methods:
points
a Class method displayMinMax receives a doubledoubleArray as input and determines
and outputs the minimum and maximum value contained in the array in the terminal. If the
array is empty, the following message shall be printed: The array is empty. There is no min
and max value to display.
points
b Class method reverseList receives an ArrayList as input and returns an
ArrayList containing the initial elements in reversed order. points
c Class method duplicateFreeOddIntegers receives an ArrayList with arbitrary
integer values, potentially including duplicates, as input. It will return an ArrayList
that contains only the duplicate free odd integer values of the input list. points
Note: A potential test class will not be graded.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
