Learn Java Programming - BufferedReader Tutorial

Published: 13 December 2015
on channel: Daniel Ross
16,890
115

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.


On this page of the site you can watch the video online Learn Java Programming - BufferedReader Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Daniel Ross 13 December 2015, share the link with friends and acquaintances, this video has already been watched 16,890 times on youtube and it was liked by 115 viewers. Enjoy your viewing!