Some of the methods in the linked list are listed below:
Method | Description
----- | -----
boolean add( Object o) | It is used to append the specified element to the end of the vector.
boolean contains(Object o) | Returns true if this list contains the specified element.
void add(int index, Object element) | Inserts the element at the specified element in the vector.
void addFirst(Object o) | It is used to insert the given element at the beginning.
void addLast(Object o) | It is used to append the given element to the end.
int size() | It is used to return the number of elements in a list
boolean remove(Object o) | Removes the first occurrence of the specified element from this list.
int indexOf(Object element) | Returns the index of the first occurrence of the specified element in this list, or -1.
int lastIndexOf(Object element) | Returns the index of the last occurrence of the specified element in this list, or -1.