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