Second, i edited your post to use the code tags. this preserves the formatting, making it MUCH easier to read. just use those 'instant UBB Code' buttons you see beneath where you enter your post, and paste your code between the tags it inserts for you.
Finally, we don't do your homework for you. We're DELIGHTED to help, but you have to do the work.
Where, exactly, are you stuck? what is/isn't working how you think it should? do you know what a linked list is? do you know how to compile a java program? Does this sample compile?
there are too many unknowns for anyone to help you if you do nothing but just post a bunch of source code. [ April 04, 2008: Message edited by: Fred Rosenberger ]
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors