head
pointer to the first node of listtail
pointer to the last node of listsize()
: Returns the number of elements in the listisEmpty()
: Returns true
if the list is empty, and false
otherwisefirst()
: Returns (but does not remove) the first element in the listlast()
: Returns (but does not remove) the last element in the listaddFirst()
: Adds a new element to the front of the listaddLast()
: Adds a new element to the end of the listremoveFirst()
: Removes and returns the first element of the list⇒ removeLast()
?