illegalrectangleexception.java
来自「这是一种用JAVA开发的图形画法程序 没有错误 欢迎各位朋友改进并上传」· Java 代码 · 共 16 行
JAVA
16 行
/**
* Title: IllegalRectangleException.java
* Description: A class containing the exception for signalling that an attempt was made to create an
* illegal rectangle.
*
* Copyright: Copyright (c) 2006
* @author Q Jin
* @version 1.0
*/
public class IllegalRectangleException extends RuntimeException{
// this is a default IllegalRectangleException method
public IllegalRectangleException(){
System.err.println("The width and the height are the same!");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?