@Override
public T removeFront() {
T front = getFront();
firstNode = firstNode.getNext();
if(firstNode == null) {
lastNode = null;
} else {
firstNode.setPrev(null);
}
return front;
}
What will happen if removeFront() is called on an empty deque?
There are no hints for this question