Originally Posted by
Eranga
Lots of errors I can found there pal. Here what you have to do.
import java.util.LinkedList;
public class DoublyLinkedList {
public static void main(String[] args) {
LinkedList <Integer> list = new LinkedList<Integer>();
list.add(new Integer(1));
list.add(new Integer(2));
list.add(new Integer(9));
list.add(new Integer(3));
list.add(new Integer(11));
list.add(2, new Integer(0));
System.out.println(list);
list.remove(0);
System.out.println(list);
}
}
how does this programme work
can you tell me each code how work plz