What part do you find confusing? The basics of linked lists or the purpose and result of this particular method? I don't want to give away exactly what it does, cause figuring that out will be the fun part for you.
At the risk of stepping too far back into the basics, a linked list is a chain of "node" objects. Each one has a link to the next one in the chain, except for the last one which usually has an empty (null) link. You can start from the head node and follow the links to the next one in the chain over and over until you hit the end.
How much have you figured out so far?
Oh, and I always try to give a smiley for new first posts! Welcome aboard! [ January 29, 2005: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi