1,
FileReader reader = FileReader(“input.txt”); BufferedReader bufferedReader = BufferedReader(reader);
这样写代码,需要close两次吗?如下
bufferedReader.close(); reader.close()
时间: 2024-11-03 21:51:18
1,
FileReader reader = FileReader(“input.txt”); BufferedReader bufferedReader = BufferedReader(reader);
这样写代码,需要close两次吗?如下
bufferedReader.close(); reader.close()