From e955c1f40df0ef97a41f80b746d855fbc773093c Mon Sep 17 00:00:00 2001 From: David Wurm Date: Mon, 25 Nov 2019 22:59:34 +0100 Subject: [PATCH] finalizing code --- src/ChainQueue.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;