Image

I'm trying to understand our lab assignment for my Java class and I just would like someone to clarify something about this particular question for me. Please don't think I'm asking for an answer...


Write a class Compare3 that provides a static method largest. Method largest should take three Comparable parameters and return the largest of the three (so its return type will also be Comparable). Recall that method compareTo is part of the Comparable interface, so largest can use the compareTo method of its parameters to compare them.


In this assignment the "Comparable" paramaters are supposed to be of what type?? Does that even matter? Can someone explain this in a more laymans' terms type way for me?

Thanks ;)