A EmptyStackException is thrown to indicate an attempt to pop (§21.12.2) or
peek (§21.12.3) an empty Stack object.
public classEmptyStackExceptionextends RuntimeException { publicEmptyStackException(); }
21.13.1 public EmptyStackException()
This constructor initializes a newly created EmptyStackException with null as
its error message string.