@@ -0,0 +1,339 @@
+//this is a simple stack class.%0Aclass Stack%7B%0A    Node top;%0A    Node pop()%7B%0A        if(top!=null)%7B%0A              Object item = top.data;%0A              top = top.next;%0A              return item;%0A        %7D%0A        return null;%0A    %7D%0A    void push(Object item)%7B%0A        Node t = new Node(item);%0A        t.next = top;%0A        top = t;%0A    %7D%0A%7D%0A%0A

Create Stack.java