import java.util.LinkedList;
/**
*
* @author heerababu
*/
public class LL_Ex {
public static void main(String args[])
{
LinkedList<String> ll=new LinkedList<String>();
ll.addFirst("HEERA");
ll.add("Navneet");
ll.addLast("pawan");
ll.add(3, "babu");
System.out.println(ll);
System.out.println(ll.clone());
System.out.println(ll.get(1));
System.out.println(ll.getFirst());
System.out.println(ll.getLast());
}
}