X473: Generics get largest value

For this question, you will need to both write the method and add in the correct parameter.

This method needs to take in a List of any type of number (Float, Integer, Double, etc) and return the largest number in the list as a double.. This parameter will need to make use of a wildcard.

You can find documentation for the Number superclass at: https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html

Your Answer:


Practice a different Java exercise


Your feedback will appear here when you check your answer.