aspose file tools*
The moose likes Beginning Java and the fly likes Problem extending the LinkedList class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Problem extending the LinkedList class

Andrew Gray
Greenhorn

Joined: Oct 22, 2009
Posts: 9
Hey I'm currently trying to sort a LinkedList when I add a new object to it. However for some reason in my SortedList class I get an error: cannot find symbol - method compareTo(java.lang.Object).
The objects i'm using in my array extend the comparable class. Have I declared it wrong?

public class SortedList<E extends Comparable<? super E>> extends LinkedList
{

...

}
Andrew Gray
Greenhorn

Joined: Oct 22, 2009
Posts: 9
Really in need of some help.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Welcome to JavaRanch

Please don't ask the same question twice. Closing thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem extending the LinkedList class