public interface QueueInterface { // Checks if the queue is empty; otherwise removes front element and returns it. Object dequeue(); // Returns true if this queue is empty; otherwise, returns false. boolean isEmpty(); }