Author | Message |
---|---|
dliang
Posts: 35
|
Posted 00:21 Nov 03, 2019 |
Professor Kennen, could you please publish the class examples we did on Wednesday, I got stuck on the compareTo method. I wrote down the method as we did on Wednesday, but I got an error message of this method that must be implemented the supertype method(Solve it, I should implement my comparable interface and create an abstract compareTomethod). Also, the collections. sort, it keeps telling me to cast the list into List<T> list. Last edited by dliang at
00:37 Nov 03, 2019.
|
kknaur
Posts: 540
|
Posted 07:57 Nov 03, 2019 |
Examples are posted. You should not have to do any casting if everything is correct. |