diff --git a/Stack.class b/Stack.class index 0ff75fa..c20a294 100644 Binary files a/Stack.class and b/Stack.class differ diff --git a/Stack.java b/Stack.java index ac03d33..7c9637b 100644 --- a/Stack.java +++ b/Stack.java @@ -8,11 +8,16 @@ public class Stack { public void push( ContentType pContentObject ) { - // TODO: Implementiere push + if (head != null) { + StackNode node = new StackNode(pContentObject); + node.setNext(head); + head = node; + } else { + head = new StackNode(pContentObject); + } } public void pop() { - // TODO: Implementiere pop if( head != null ) { head = head.getNext(); }