nottextfileexception.java
来自「1.文件和目录管理」· Java 代码 · 共 16 行
JAVA
16 行
/**
* NotTextFileException extends Exception throws when stastic a file
* but the file is not a text file and show a message dialog
*/
package file;
import java.io.*;
import javax.swing.*;
public class NotTextFileException extends Exception {
public NotTextFileException(String fileName){
super(fileName);
JOptionPane.showMessageDialog(null,fileName
+ " is not a text file !!");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?