underflowexception.java
来自「this how we make stack and queue in java」· Java 代码 · 共 17 行
JAVA
17 行
package stackqueue;
public class UnderflowException extends Exception {
private String message = "";
public UnderflowException() {
this.message = "The stack is empty.";
}
public UnderflowException(String message) {
this.message = message;
}
public String getMessage() {
return this.message;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?