p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Java 2 (http://p2p.wrox.com/forumdisplay.php?f=30)
-   -   multi-leveled linkedlist (http://p2p.wrox.com/showthread.php?t=13292)

saiyedriyaz May 22nd, 2004 03:55 AM

multi-leveled linkedlist
 
hi,everyone
i'm working on a project.as per requirement in

project,i need to develope a multiway(or multileveled)

linked list(the one which may have more than one

previous and more than one next pointer).can any one

plz help me by giving some idea or some source code-if

anybody have.
in this linked list,each node may point to n nummber of

next nodes,or may be pointed by a number of nodes.
waiting for reply.than you.


freezotic May 29th, 2004 03:00 PM

Quote:

quote:Originally posted by saiyedriyaz
 I need to develope a multiway(or multileveled)
linked list(the one which may have more than one
previous and more than one next pointer).
A multi-addressable linked list sounds like a C++ idea to me.

You could get more than one Iterator or ListIterator for a LinkedList of course, and you could use these to traverse through the list, but then you should take care not to modify the LinkedList by changing or adding or removing an element.
Better have one Iterator at a time modifying a List. You should read about the fail-fast behaviour of the Iterator in the Java API

And get some real help!
Greetings
Frans


All times are GMT -4. The time now is 02:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.