|
|
@@ -46,7 +46,7 @@ public class ChainQueue<E> implements Queue<E> { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public boolean add(E input) { // Übergeben der "Data" |
|
|
|
public boolean add(E input) { |
|
|
|
if (getFirst() == null) { // is the first empty? |
|
|
|
setFirst(new Node(input)); // yes? -> insert the node here |
|
|
|
return true; |
|
|
|