package dataStructures1112; import java.io.Serializable; public interface Queue extends Serializable { // Returns true iff the queue contains no elements. boolean isEmpty( ); // Returns the number of elements in the queue. int size( ); // Inserts the specified element at the rear of the queue. void enqueue( E element ); // Removes and returns the element at the front of the queue. E dequeue( ) throws EmptyQueueException; }