private void displayStack() { if (stack.isNull()) throw new IllegalArgumentException(); Stack thisStack = stack; while (thisStack != null) { System.out.println(thisStack.peek()); thisStack = thisStack.tail(); } }