/** The Queue interface specifies the methods for a queue data structure. * **/ public interface Queue { /** Returns true if this queue is empty; * false otherwise. */ boolean isEmpty(); /** Adds a specified object to the "back" of this queue. * @param x the object to add to the queue */ void enqueue(Object x); /** Removes the element at the "front" of this queue. * @returns the returned element * @throws NoSuchElementException if the queue is empty **/ Object dequeue(); /** Returns the element at the "front" of this queue, without * modifying the queue. * @throws NoSuchElementException if the queue is empty **/ Object peekFront(); }