Question: 9 . 9 . In the class GenericQ implement the following methods Write a static generic method called getUnique that will take in an array

9.9. In the class GenericQ implement the following methods
Write a static generic method called getUnique that will take in an array of Type T and return another array of T that consists of unique values in the first list.
Write a static generic method called getAverage that will take in a list of a subclass of Number and return the average for that List as a double value.
Write a generic Method combine that will take in an Array of Type T ((where T is comparable)) and return the largest element in that array.

Step by Step Solution

3.48 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautil public class GenericQ Static generic method to get unique values from an array publi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!