Add elements in LinkedList
- 4th Sep 2018
- 0
- 5145
- Add methods in linked list java add operation in linkedlist java different methods to add element in linked list with example Overloaded add() defined in linkedlist
We can use add() method of LinkedList to insert new elements to LinkedList There are 6 overloaded “add” methods defined in LinkedList 1) boolean add(Object o); 2) void add(int index, Object o); 3) boolean addAll(Collection