Linked List
1 posts in topic
Flat View  Flat View

Posted By:   Nicki_Carter
Posted On:   Friday, May 17, 2002 05:04 PM

I have a user defined class and I want to create a linked list of objects from that class, how do i do that?

Re: Linked List

Posted By:   Lasse_Koskela  
Posted On:   Saturday, May 18, 2002 01:05 PM

I think this question is answered in almost every single programming book there is.

If you know how a linked list is structured, it's quite easy to write a general linked list using java.lang.Objects as the nodes' data.

This way you don't need to know which type of objects are stored into the linked list - only the user code needs to know that (and make explicit casts).

About | Sitemap | Contact