title: In the LinkedList Java Core Collection, what is the use of addLast?
body: <p>I have a Linked List object called <code>ll</code>. I added some data into that object. Assume that are like following: </p>
  
  <pre><code>LinkedList ll = new LinkedList();
  
  ll.add("Mohan");
  
  ll.add("Rajesh");
  
  ll.addFirst("Kumar");
  
  ll.addLast("Nammu");
  
  ll.add("Divyesh");
  </code></pre>
  
  <p>My question is: if I already  inserted 100 data,  when I use <code>addFirst()</code> method then that data will be insert at First, but the same functionality should happen for <code>addLast()</code> method also, which means if anywhere i use <code>addLast()</code> method also it has to insert data at last, but if I add any more data after <code>addLast()</code> method that data only inserting at last then what is the use of <code>addLast()</code> method instead of that we can use just add() method only right ?</p>