: yes it would be nice if program will run and give me some sort of output.
:
: thanks everyone for helping me.
:
Hey, copy and paste the code I've given earlier. It should print the list. It should give you the output you want.
Did everyone skip my message?
import java.util.LinkedList;
// http://java.sun.com/j2se/1.3/docs/api/java/util/LinkedList.html
// also try Iterator class
public class LinkedListTest
{
public static void main(String a[])
{
LinkedList LL = new LinkedList();
LL.add("hello"); // add a new element
LL.add("This is another element");
// add another element to end of list
LL.remove(0); // remove first element in list.
LL.add("Last element in the list");
System.out.println(LL.toString());
// print out list
}
}