addLast method

void addLast(
  1. E element
)

Adds an element to the rear of the queue.

Implementation

void addLast(E element) {
  offer(element);
}