File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 37926
    
  22
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
 
Similar Threads
Generic Java, Type not bounded
Unable to add object to array.
Problem with generics
New to Generics
Really need help!