java中为什么要用BufferedReader,BufferedWriter"包装" Reader 和 Writer
查查BufferedReader JDK文档:
Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
应该是效率更高,为什么效率高?
应该是这样先缓存可以降低IO的读写次数,而IO操作是低效的,所以这样做可以提高效率。