Parcourir la source

finalizing code

master
David il y a 4 ans
Parent
révision
e955c1f40d
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. +5
    -5
      src/ChainQueue.java

+ 5
- 5
src/ChainQueue.java Voir le fichier

@@ -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;


Chargement…
Annuler
Enregistrer