Update LinkedList.java

Question No 5 dai that is of Linked-List