codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  need help linked list  indianj at 02:14 on Wednesday, December 21, 2005
 

hello friends, i am learning Linked list and i am not sure what are the difference between these three linked list?
[code]
public class CircularLinkedList
{// creating constructor?
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;
}[/code]

  Re: need help linked list  crwood at 05:00 on Wednesday, December 21, 2005
 


public class CircularLinkedList // this is the class declaration
{
// declare instance variables (class scope)
Node head;
Node tail;

/**
* no-argument constructor
*/
public CircularLinkedList()
{
Node n = new Node(); // initialize with an empty node
head = n;
tail = n;
}

/**
* one-argument constructor
*/
public CircularLinkedList(Object obj)
{
Node n = new Node(obj); // initialize nodes with argument value
head = n;
tail = n;


  Re: need help linked list  indianj at 18:01 on Wednesday, December 21, 2005
 

thanks crwood








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: sorting and Linked list
•  Re: need help linked list
•  Re: Help with arrays
•  Re: Reading from a file
•  Re: Why Use Method?
•  Re: Help with a simple program
•  Re: need help with quiz
•  Re: Help with filesystem object & displaying in a table
•  Re: Genetic Algorithm Help


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005