Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Need help to understanding with Doubly-linked circular Lists

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help to understanding with Doubly-linked circular Lists

    Hello guys!
    I'm now studying about linked lists with singular linear list, double linked list, and circular linked list.
    I want to understand how to combined two type of linked list as the title "Doubly-linked circular Lists" with some explanation, some tips, or even some worked sample etc.
    I would appreciate much any helps from you guys!
    Thank you
    Harry


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Need help to understanding with Doubly-linked circular Lists

    Doubly circular linked list means, a linked list that is circular and two way. Now as you've been already read about double linked list and circular linked list, you got the idea about two and now you can easily use your brain to work with double circular linked list.

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help to understanding with Doubly-linked circular Lists

    As my understanding, I have to link the tail of the list to the head. In coding way, however, is it something like:
    Node lastNode = firstNode;
    Additionally, what methods (add, replace, clear, remove etc...) should be changed in order to make it to circular type.

  4. #4
    Junior Member
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help to understanding with Doubly-linked circular Lists

    I'm now working on some classes.
    I will post them here by the tomorrow when I have some more works on it.
    Thank you
    Harry

Similar Threads

  1. [SOLVED] Circular Linked List---Need Help ASAP (before midnight)
    By The Dark Mathematician in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 17th, 2011, 03:24 PM
  2. Help with a doubly linked circular list
    By TeamRival in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 3rd, 2011, 10:59 PM
  3. Generic Doubly Linked List
    By javapenguin in forum What's Wrong With My Code?
    Replies: 23
    Last Post: October 23rd, 2010, 04:13 PM
  4. Sorted Doubly linked List
    By student in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 15th, 2010, 10:52 PM
  5. circular linked list
    By student123xyz in forum Collections and Generics
    Replies: 4
    Last Post: August 19th, 2009, 11:40 AM