Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

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

    You left out your ComparatorChain class as well. It looks like a large class. Can you provide us the checkChainIntegrity() and compare() methods?
  2. Re: Comparable is implemented, but still " java.lang.Comparable" error appears

    After you address my previous post, if Item implements Comparable and Textbook extends Item, Textbook does not need to implement Comparable. If you would like Comparable to act differently for...
  3. Re: Comparable is implemented, but still " java.lang.Comparable" error appears

    Wait, did you create a Comparable class? Because if so, you cannot use it with the Collections.sort() method. If you want to use that method, you need to implement this class: Comparable (Java...
  4. Re: Comparable is implemented, but still " java.lang.Comparable" error appears

    Please put your code in code tags.

    Where is your Item class? Also, why are you casting library.getItem() to an ArrayList? Collections couldn't care less what extension of List it is, and doing...
Results 1 to 4 of 4