DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    3

    Red face Linked List Display content error

    I am currently now doing a simple linked list program. I have been trying for a week now but the solution seems to have elude me. I can't display the information I have stored into the linked list. Can anyone help me, pleasE?

    I have remove the code to update it
    Last edited by blazingwolf7; 11-17-2005 at 09:00 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    I played with it a bit and it adds stuff now. This is not ready to turn in, however. Please take a look at the difference between your LinkedList constructor and mine, and your main method and mine ...
    Attached Files
    Last edited by nspils; 11-12-2005 at 03:37 AM.

  3. #3
    Join Date
    Nov 2005
    Posts
    3
    Thanks a million nspils. It really helps. Now I start to see how it works. Of course. further assistant will be appreciated. But I can start working further now. Thanks.

    By the way, just for people who is interested, I forget to increment the variable i in the while loop for the displayInformation() method. However, after I add it, another problem occur. It will only display information in the first nod, nothing else will be display. I wonder why?
    Last edited by blazingwolf7; 11-13-2005 at 06:02 AM.

  4. #4
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    You aren't iterating through your list - there is no "update" of your node whose information you're outputting - a list does not have a "next" method - however, a list's iterator has a next method.

  5. #5
    Join Date
    Nov 2005
    Posts
    3
    I will update later
    Last edited by blazingwolf7; 11-17-2005 at 09:01 AM.

Similar Threads

  1. Replies: 12
    Last Post: 10-26-2005, 09:54 AM
  2. Linked list problem
    By Bhavna in forum C++
    Replies: 2
    Last Post: 03-31-2005, 05:17 PM
  3. Display Values in a List box
    By jeffrey in forum VB Classic
    Replies: 0
    Last Post: 02-11-2005, 04:37 PM
  4. EMERGENT.... double linked list
    By mary in forum Java
    Replies: 0
    Last Post: 07-20-2001, 08:42 AM
  5. ListBot Going Out of Business
    By Larry Rebich in forum vb.announcements
    Replies: 1
    Last Post: 06-28-2001, 01:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links