Create a class that implements the PureQueue
interface with the following
methods:
Object peek();
Object poll();
void offer(Object item);
boolean isEmpty();
Your implementation should adapt the LinkedList
class and provide
an efficient implementation.
Stuck? You may find these lessons helpful: