Java linked list multiple values

Inserts the specified element at the specified position in this list.

Appends the specified element to the end of this list.

Inserts all of the elements in the specified collection into this list, starting at the specified position.

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator.

Inserts the specified element at the beginning of this list.

Appends the specified element to the end of this list.

Removes all of the elements from this list.

Returns a shallow copy of this LinkedList.

Returns true if this list contains the specified element.

Returns an iterator over the elements in this deque in reverse sequential order.

Retrieves, but does not remove, the head [first element] of this list.

Returns the element at the specified position in this list.

Returns the first element in this list.

Returns the last element in this list.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.

Returns a list-iterator of the elements in this list [in proper sequence], starting at the specified position in the list.

Adds the specified element as the tail [last element] of this list.

Inserts the specified element at the front of this list.

Inserts the specified element at the end of this list.

Retrieves, but does not remove, the head [first element] of this list.

Retrieves, but does not remove, the first element of this list, or returns null if this list is empty.

Retrieves, but does not remove, the last element of this list, or returns null if this list is empty.

Retrieves and removes the head [first element] of this list.

Retrieves and removes the first element of this list, or returns null if this list is empty.

Retrieves and removes the last element of this list, or returns null if this list is empty.

Pops an element from the stack represented by this list.

Pushes an element onto the stack represented by this list.

Retrieves and removes the head [first element] of this list.

Removes the element at the specified position in this list.

Removes the first occurrence of the specified element from this list, if it is present.

Removes and returns the first element from this list.

Removes the first occurrence of the specified element in this list [when traversing the list from head to tail].

Removes and returns the last element from this list.

Removes the last occurrence of the specified element in this list [when traversing the list from head to tail].

Replaces the element at the specified position in this list with the specified element.

Returns the number of elements in this list.

Returns an array containing all of the elements in this list in proper sequence [from first to last element].

Returns an array containing all of the elements in this list in proper sequence [from first to last element]; the runtime type of the returned array is that of the specified array.

Video liên quan

Chủ Đề