摘要: jdk7可以用 thy-with-resoucese, 不用手动关闭 查询资料都说要实现autoclouseable接口才能自动关闭流 ,但自测了多次,不管是否测试aoutocloeseable中的close()方法都可以自动关闭 try( BufferedWriter write= new Buf 阅读全文
posted @ 2019-04-15 16:53 向前向后看 阅读(2111) 评论(0) 推荐(0) 编辑