public class Queue
extends java.lang.Object
Constructor and Description |
---|
Queue()
Construct an empty queue setting front and rear to null.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFront()
This method removes and returns the front of the queue.
|
void |
insert(java.lang.Object x)
add an object to the end of the queue.
|
boolean |
isEmpty() |
public java.lang.Object getFront()
public boolean isEmpty()
public void insert(java.lang.Object x)
x
-