Re: Singly Linked LIst and Objects Newbie Question
- From: Philipp Leitner <philipp.leitner@xxxxxx>
- Date: Sun, 30 Sep 2007 04:11:09 -0700
I might be missing something totally obvious here, but where in your
code are you setting the 'head' of the list? This is something that
should probably go into the block where you check for the 'first
value'.
Another sidenote: you should stick to the standard conventions of CS,
like that the first element of a list has the index '0', not '1' as in
your case (see for instance arrays, the java.util collections, ...)
/philipp
.
- Follow-Ups:
- References:
- Singly Linked LIst and Objects Newbie Question
- From: Taria
- Singly Linked LIst and Objects Newbie Question
- Prev by Date: Re: Singly Linked LIst and Objects Newbie Question
- Next by Date: Re: Singly Linked LIst and Objects Newbie Question
- Previous by thread: Re: Singly Linked LIst and Objects Newbie Question
- Next by thread: Re: Singly Linked LIst and Objects Newbie Question
- Index(es):
Relevant Pages
|
|