Procházet zdrojové kódy

finalizing code

master
David před 4 roky
rodič
revize
e955c1f40d
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. +5
    -5
      src/ChainQueue.java

+ 5
- 5
src/ChainQueue.java Zobrazit soubor

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


Načítá se…
Zrušit
Uložit