View Single Post
  #11 (permalink)  
Old 05-10-2008, 11:16 AM
tito84 tito84 is offline
Member
 
Join Date: May 2008
Posts: 1
tito84 is on a distinguished road
Quote:
Originally Posted by Eranga View Post
Lots of errors I can found there pal. Here what you have to do.

Code:
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
Reply With Quote