The Artima Developer Community
Sponsored Link

Java Answers Forum
linked list

1 reply on 1 page. Most recent reply: Oct 14, 2002 3:50 AM by siddhartha

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
bfisher

Posts: 1
Nickname: tyme4b
Registered: Oct, 2002

linked list Posted: Oct 12, 2002 8:21 AM
Reply to this message Reply
Advertisement
i want to creat 4 seperate list and link them together how can i do that.


siddhartha

Posts: 15
Nickname: saddysan
Registered: Jul, 2002

Re: linked list Posted: Oct 14, 2002 3:50 AM
Reply to this message Reply
i think this should solve ur problem

LinkList l1 = new LinkList();
LinkList l2 = new LinkList();
LinkList l3 = new LinkList();
LinkList l4 = new LinkList();
// add the elements in these linklists

l1.addAll(l2);
l1.addAll(l3);
l1.addAll(l4);

// Now the l1 containt all the elements

Flat View: This topic has 1 reply on 1 page
Topic: File Upload Previous Topic   Next Topic Topic: How to round to the nearest .001

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use