Search:

Type: Posts; User: javapenguin

Search: Search took 0.09 seconds.

  1. Re: Comparable is implemented, but still " java.lang.Comparable" error appears

    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...
  2. Re: Comparable is implemented, but still " java.lang.Comparable" error appears

    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...
Results 1 to 2 of 2