You left out your ComparatorChain class as well. It looks like a large class. Can you provide us the checkChainIntegrity() and compare() methods?
Type: Posts; User: aussiemcgr
You left out your ComparatorChain class as well. It looks like a large class. Can you provide us the checkChainIntegrity() and compare() methods?
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...
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...
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...