How do you compare multiple doubles and return a value to see which one is the biggest? I have 4 doubles that I'm trying to compare on the same line and Double.compare only accepts 2 parameters.
I think I have a pretty good understanding on how to compare 2, but I can't figure out how to do more than 2 at once.
If you are just interested in the maximum (or minimum), this method "maxOfList" might serve as a template: