Following are the 7 basic operations performed on Linked List.
Operation | Description |
---|---|
addLast() |
Adds item at the end of the List. |
addFirst() |
Adds item at the beginning of the List. |
addAnywhere() |
Adds item anywhere in the List using Index. |
removeFirst() |
Removes item from the beginning of the List. |
removeLast() |
Removes item from the end of the List. |
removeAnywhere() |
Removes item from anywhere in the List using Index. |
display() |
Display List. |