Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 12-17-2005, 01:18 PM   #1
Beta Member
Join Date: Dec 2005
Posts: 2
Default LinkedList?

hi, i need some help understanding this code. what is the difference between these three LinkedList?

public class CircularLinkedList
Node head;
Node tail;

public CircularLinkedList()
Node n = new Node();
head = n;
tail = n;

public CircularLinkedList(Object obj)
Node n = new Node(obj);
head = n;
tail = n;

indianj is offline   Reply With Quote
Old 12-21-2005, 03:30 PM   #2
Baseband Member
Griz803's Avatar
Join Date: Jun 2004
Posts: 89
Default Re: LinkedList?

The code fragments here seem to be fragments, at best, of a class designed for a circular linked list. The term circular means that items are inserted between a head and a tail node that link to each other. In other words, the list has no meaningfull end, just two predesignated terminus nodes and everything between. I'd really like to help you understand this code, but it is too incomplete to go further into it. Instead, try the two links below for examples and explanations both. I hope they help


/*What does not kill us, makes us drink far too much caffeine*/
Griz803 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 11:25 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0