📄 emptysetexception.java
字号:
//********************************************************************
// EmptySetException.java Authors: Lewis/Chase
//
// Represents the situation in which a set is empty.
//********************************************************************
package jss2.exceptions;
public class EmptySetException extends RuntimeException
{
/******************************************************************
Creates the exception.
*******************************************************************/
public EmptySetException()
{
super ("The set is empty.");
}
/******************************************************************
Creates the exception with the specified message.
*******************************************************************/
public EmptySetException (String message)
{
super (message);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -