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 implements Deque {

@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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!