Learn Java Programming - BufferedReader Tutorial
The BufferedReader class is used to read text from a character stream. This tutorial builds on concepts from both my InputStreamReader Tutorial and my FileReader Tutorial, I highly recommend watching them first. This tutorial will demonstrate reading text from an input stream from the keyboard and will also demonstrate reading an input stream from a text file. The BufferedReader class has the same read() method that both InputStreamReader and FileReader use to read a single byte at a time. The BufferedReader class introduces a method named readLine() which will read an entire line of text which is a huge improvement. The BufferedReader class implements AutoClosable so we can use the try-with-resources type exception handling.














