Hmm.. I'm not very familiar with linkedlists, but have you tried looking at
the LinkList class that is part of the java.util.* package?  The LinkedList
class is part of the Java Collections framework that was introduced in JDK
1.2.  Here are some links that you might find useful:

1) LinkedList class:
   http://java.sun.com/products/jdk/1.2/docs/api/java/util/LinkedList.html
2) Java tutorial on the Collections framework:
   http://java.sun.com/docs/books/tutorial/collections/index.html



-----Original Message-----
From: Shirley Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 8:48 AM
To: [EMAIL PROTECTED]
Subject: LinkedList


I am strugling so hard on this, could anybody help me? Here is my problem:

I need a fixed size linkedlist (100 elements) to store string objects.  The
reason for the fixed size is I don't know how many strings I will get, and I
don't want the linkedlist out grow so it will fill up the memory.  When I
got 101th string, I will delete the first one, and make the space for the
new one.  What is the efficient way to do that?

Thanks



____________________________________________________________________________
_________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to