import java.util.Iterator;
import java.util.LinkedList;
public class LinkedListRemoveFirstEle{
public static void main(String[] args) {
LinkedList<String> ll = new LinkedList<>();
ll.add("Ishu");
ll.add("Nishu");
ll.add("Naina");
ll.add("Nisha");
ll.add("Shiksha");
System.out.println("Before removing element, the LinkedList is :");
System.out.println(ll);
ll.removeFirst();
System.out.println("After removing element, the LinkedList is :");
System.out.println(ll);
}
}