import java.io.*; // ... FileReader in = null; try { in = new FileReader("Missing.file"); } catch(FileNotFoundException e) { System.out.print(e.getMessage()); } finally { if (in != null) { try { in.close(); } catch(IOException e) {} } }
参考文献: Java Quick Syntax Reference by Mikael Olsson
Java 语法 索引 ----- 异常
时间: 2024-10-06 04:48:16