Package ch.hslu.exercises.sw02.ex4
Interface CharQueue
- All Known Implementing Classes:
ArrayCharQueue
public interface CharQueue
-
Method Summary
-
Method Details
-
offer
void offer(char element) Add a char to the head of the queue.- Parameters:
element
- the char to be added.
-
poll
char poll()Get a char from the head of the queue.- Returns:
- the head of the queue
-
size
int size()Get the current size of the queue.- Returns:
- the size of the queue
-