I am looking for source code for a simple Linked List class in Java,
which could be used to insert, append, remove, count, display objects. If you
have some source code for this purpose, or you know of a site where I can get
it, kindly respond.
Printable View
I am looking for source code for a simple Linked List class in Java,
which could be used to insert, append, remove, count, display objects. If you
have some source code for this purpose, or you know of a site where I can get
it, kindly respond.
Use the java 1.2 collection classes. There is a LinkedList implementation of a list, there is also an ArrayList. They have all the standard LinkedList calls available.
The classes are available with JDK 1.2 or by downloading the classes seperately from java.sun.com