public class QueueLL implements QueueInterface{ private SingleLinkedList underlyingLL; public QueueLL() { underlyingLL = new SingleLinkedList(); } @Override public int size() { return underlyingLL.size(); } @Override public boolean isEmpty() { return underlyingLL.isEmpty(); } @Override public Q getFront() { return underlyingLL.first(); } @Override public boolean enqueue(Q e) { underlyingLL.addLast(e); return true; } @Override public Q dequeue() { return underlyingLL.removeFirst(); } @Override public void clear() { underlyingLL = new SingleLinkedList(); } }