Question: I need help learning how to create these methods.*************** I cannot use a import whatsoever************** public class BaseDeque implements Deque { @Override public void enqueueFront(Item
I need help learning how to create these methods.*************** I cannot use a import whatsoever**************
public class BaseDeque
@Override public void enqueueFront(Item element) {
}
@Override public void enqueueBack(Item element) { }
@Override public Item dequeueFront() throws NoSuchElementException { return null; }
@Override public Item dequeueBack() throws NoSuchElementException {
return null; }
@Override public Item first() throws NoSuchElementException {
return null; }
@Override public Item last() throws NoSuchElementException { // TODO Auto-generated method stub return null; }
@Override public boolean isEmpty() { return false; }
@Override public int size() {
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
