摘要:
例子: 1 2 3 4 5 6 7 try (FileReader reader = new FileReader("data.txt")) { ... }catch (IOException io) { ... }finally{ .... } 这个括号在JDK1.7之前是没有的,是1.7的新特性 阅读全文
posted @ 2019-11-07 17:16 huhuuu 阅读(772) 评论(0) 推荐(0)
|
|||
|
摘要:
例子: 1 2 3 4 5 6 7 try (FileReader reader = new FileReader("data.txt")) { ... }catch (IOException io) { ... }finally{ .... } 这个括号在JDK1.7之前是没有的,是1.7的新特性 阅读全文
posted @ 2019-11-07 17:16 huhuuu 阅读(772) 评论(0) 推荐(0) |
|||