This method of the Queue Class adds an element to the tail of the queue.
public synchronized void addElement(Object newelt);
newelt | The new element to add to the queue. |
The queue will grow, as necessary, by the factor provided when the queue was constructed. Null is a valid element to add.