public abstract class Queue
extends java.lang.Object
Constructor and Description |
---|
Queue() |
Modifier and Type | Method and Description |
---|---|
abstract char |
get()
Retrieves and removes the head of this queue, Exception if this queue is empty.
|
abstract Iterator |
iterator()
Returns an iterator of the values in this queue.
|
abstract void |
put(char value)
Inserts the value into this queue.
|
abstract int |
size()
Returns the number of values in this queue.
|
public abstract void put(char value) throws java.lang.Exception
java.lang.Exception
public abstract char get() throws java.lang.Exception
java.lang.Exception
public abstract int size()
public abstract Iterator iterator()