Browse Source

finalizing code

master
David 2 years ago
parent
commit
e955c1f40d
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/ChainQueue.java

+ 5
- 5
src/ChainQueue.java View File

@@ -104,11 +104,6 @@ public class ChainQueue<E> implements Queue<E> {
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<E> implements Queue<E> {

/*** the following is not implemented because it's not needed here ***/

@Override
public E element() {
return null;
}

@Override
public Iterator<E> iterator() {
return null;


Loading…
Cancel
Save