Author | Message |
---|---|
Sasuke_6698
Posts: 4
|
Posted 18:56 Feb 09, 2019 |
Would using the compareTo function be appropriate for the max & min methods? |
kknaur
Posts: 540
|
Posted 10:55 Feb 10, 2019 |
You would need to use compareTo for any boolean operations > < >= <= == !=. This is why we have to require that E extends Comparable. |