This method of the Queue Class duplicates the queue.
public synchronized Queue copy();
Returns a copy of the Queue object.