The Queue Class contains the following methods:
addElement adds an element to the tail of the queue.
capacity obtains the maximum number of objects that the queue can contain without resizing.
clone creates a copy of the object.
copy duplicates the queue.
elementFromHead retrieves an element relative to the head of the queue.
elementFromTail retrieves an element relative to the tail of the queue.
hasMoreElements determines if the queue is empty.
nextElement removes an object from the head of the queue.
pop retrieves the element last added to the queue.
removeAllElements empties the queue.
setCapacity changes the queue's capacity.
size obtains the number of elements in the queue.
toString retrieves a string representation of the Queue object.