[전체 코드] public class LinkedListStack { private Node head; private Node top; private class Node{ private Object data; private Node next; Node(Object data){ this.data = data; } } public void push(Object data) { if(head == null) { head = new Node(data); top = head; return; } Node node = new Node(data); top.next = node; System.out.println("push, top.next "+top.next); top = node; System.out.println("..