addLast linked list java
LinkedList
|
AddLast(LinkedListNode |
Adds the specified new node at the end of the LinkedList |
AddLast(T) |
Adds a new node containing the specified value at the end of the LinkedList |
AddLast(LinkedListNode)
Adds the specified new node at the end of the LinkedList
Parameters
The new LinkedListNode
Exceptions
node is null.
node belongs to another LinkedList
Examples
For an example that includes this method, see the LinkedList
Remarks
LinkedList
If the LinkedList
This method is an O(1) operation.
See also
- AddAfter
- AddBefore
- AddFirst
- RemoveLast()
Applies to
AddLast(T)
Adds a new node containing the specified value at the end of the LinkedList
Parameters
The value to add at the end of the LinkedList
Returns
LinkedListNodeThe new LinkedListNode
Examples
For an example that includes this method, see the LinkedList
Remarks
LinkedList
If the LinkedList
This method is an O(1) operation.
See also
- AddAfter
- AddBefore
- AddFirst
- RemoveLast()