public void print() {
    	if (this.isEmpty()) {
    		return;
    	}
    	System.out.print(top.data);
    	Node<T> node = top.next;
    	while (node != null) {
    		System.out.print(" -> "+node.data);
    		node = node.next;
    	}
    }