Try changing it, in the TextBook class, to
implements Comparable<TextBook> and see if that works.
An Item might not necessarily be a TextBook. If you also had a class that extended...
Type: Posts; User: javapenguin
Try changing it, in the TextBook class, to
implements Comparable<TextBook> and see if that works.
An Item might not necessarily be a TextBook. If you also had a class that extended...
Any reason why both Item and Textbook are both implementing Comparable<Item>?
I think that it's
Comparable<T>
so if you also want to have TextBook implement Comparable, then I think it...