This method of the Queue Class retrieves an element relative to the head of the queue.
public synchronized Object elementFromHead(int idx);
Returns the requested object.