📄 exceptiontest5.java
字号:
import java.io.*;
public class ExceptionTest5{
public static void main(String args[]){
FileInputStream fileObj = null;
try{
fileObj = new FileInputStream("readme.txt");
System.out.println("Content of readme.txt is:");
int Len,i =1;
while((Len = fileObj.read())!=-1){
System.out.print("Line "+i+Len);
i = i+1;
}
}catch(IOException e){
System.out.println(e);
}catch(FileNotFoundException e){
System.out.println(e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -