diff --git a/src/ChainQueue.java b/src/ChainQueue.java index e497b13..838c04c 100644 --- a/src/ChainQueue.java +++ b/src/ChainQueue.java @@ -104,11 +104,6 @@ public class ChainQueue implements Queue { return temp; } - @Override - public E element() { - return null; - } - @Override public E peek() { // only "see" into the queue and do not remove anything if (!this.isEmpty()) { @@ -119,6 +114,11 @@ public class ChainQueue implements Queue { /*** the following is not implemented because it's not needed here ***/ + @Override + public E element() { + return null; + } + @Override public Iterator iterator() { return null;