Intel

Developer Zone

EmptyStackException

java.util

Class EmptyStackException



  • public class EmptyStackException
    extends RuntimeException
    An EmptyStackException is thrown if the pop/peek method of a stack is executed on an empty stack.
    See Also:
    RuntimeException
    • Constructor Detail

      • EmptyStackException

        public EmptyStackException()
        Constructs a new EmptyStackException with the stack trace filled in.
      • EmptyStackException

        public EmptyStackException(String detailMessage)
        Constructs a new EmptyStackException with the specified detail message.
        Parameters:
        detailMessage - the detail message for this exception.