8 lines
284 B
Java
8 lines
284 B
Java
public interface Queue {
|
|
public abstract boolean isEmpty();
|
|
public abstract int size();
|
|
public abstract Object front() throws QueueEmptyException;
|
|
public abstract void enqueue(Object item) throws QueueFullException;
|
|
public abstract Object dequeue() throws QueueEmptyException;
|
|
}
|