Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 11th, 2008, 9:12 PM   #1
fhslacrosse13
Newbie
 
Join Date: Oct 2006
Posts: 25
Rep Power: 0 fhslacrosse13 is on a distinguished road
Ordered Linked List

I'm having some trouble with a program that I'm doing for a class. I'm suppose to implement the OrderedListADT which extends ListADT, but I keep getting errors asking me to write the methods in the OrderedList class that have already been written in the LinkedList class. I'm really not sure what I'm doing wrong...been working on it now for about 3 hours with no hope in sight.
Attached Files
File Type: java LinearNode.java (2.0 KB, 1 views)
File Type: java LinkedList.java (5.9 KB, 4 views)
File Type: java ListADT.java (1.3 KB, 1 views)
File Type: java OrderedLinkedList.java (1.2 KB, 2 views)
File Type: java OrderedListADT.java (539 Bytes, 2 views)
File Type: java ElementNotFoundException.java (717 Bytes, 0 views)
File Type: java EmptyCollectionException.java (674 Bytes, 0 views)
fhslacrosse13 is offline   Reply With Quote
Old Jun 12th, 2008, 7:10 PM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 850
Rep Power: 4 The Dark is on a distinguished road
Re: Ordered Linked List

If you want OrderedLinkedList class to have the methods from the LinkedList class you would have to inherit from that class.
The Dark is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linked list problems bl00dninja C++ 6 Feb 17th, 2008 10:30 AM
error of double linked list . Pacer C 4 May 24th, 2006 11:40 PM
Linking to a linked list within a linked list Kry1010 C++ 6 Apr 6th, 2006 6:21 AM
Singly Linked List Help Firebar Java 3 May 22nd, 2005 10:56 AM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:51 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC