Welcome to Dream.In.Code
Become a Java Expert!

Join 149,617 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,855 people online right now. Registration is fast and FREE... Join Now!




java linked list (data structures)

 
Reply to this topicStart new topic

java linked list (data structures), insert at middle (listnodes)

mary_rockwell
12 Sep, 2007 - 07:33 PM
Post #1

New D.I.C Head
*

Joined: 12 Sep, 2007
Posts: 2


My Contributions
how to insert a node at the middle of a linked list? (linked list)[size=7][font=Georgia][color=#3366FF]
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Java Linked List (data Structures)
12 Sep, 2007 - 08:44 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
You can find more information about linked lists in java at the following site url...

MOD EDIT: Inappropriate link removed as it does not pertain to programming ~ jayman9


If you have problems with your code, then provide that and be patient, we will get to it whenever it is possible.

Thanks! smile.gif
User is offlineProfile CardPM
+Quote Post

LOVESOMEONE3495
RE: Java Linked List (data Structures)
19 Sep, 2007 - 06:27 AM
Post #3

New D.I.C Head
*

Joined: 3 Sep, 2007
Posts: 6


My Contributions
hi can u tell something about using linked lists in Java

User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Java Linked List (data Structures)
19 Sep, 2007 - 06:36 AM
Post #4

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
proper linked lists do not actually exist in Java properly as there are no pointers available as there are in C/C++.

Is this a theoretical question (pseudo code) or do you have some code to share w/ us?
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Java Linked List (data Structures)
19 Sep, 2007 - 06:40 AM
Post #5

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Here.
User is offlineProfile CardPM
+Quote Post

m2s87
RE: Java Linked List (data Structures)
19 Sep, 2007 - 09:27 AM
Post #6

D.I.C Regular
Group Icon

Joined: 28 Nov, 2006
Posts: 390



Thanked: 3 times
Dream Kudos: 1225
My Contributions
Use arraylist; Look up .add(i, e) - Inserts e at index i, shifting elements up as necessary.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:35AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month