emptystackexception.java

来自「一个普通的计算器程序」· Java 代码 · 共 26 行

JAVA
26
字号
//********************************************************************
//  EmptyStackException.java     Authors: Lewis/Chase
//
//  Represents the situation in which a stack is empty.
//********************************************************************
package jss2.exceptions;

public class EmptyStackException extends RuntimeException
{
   /******************************************************************
     Creates this exception.
   ******************************************************************/
   public EmptyStackException()
   {
      super ("The stack is empty.");
   }

   /******************************************************************
     Creates this exception with the specified message.
   ******************************************************************/
   public EmptyStackException (String message)
   {
      super (message);
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?