Java Data Structures
Design the UI
I know documentation is linked in teachers notes but the way its written doesn't get to me.
Why we use BufferedReader ?
I'm still learning a lot and I'm far from an expert but I'll be happy to answer to the best of my ability:
It sounds like a BufferedReader is used to wrap around the InputStreamReader. From what I understand, technically, we don't need it but if we don't use it, then each read request made of a reader causes another read request to happen for the underlying character or byte stream. In other words, it uses up a ton of resources.
Wrapping it in a BufferedReader prevents this from happening and makes things much more efficient.
Here is more information on buffering in computer science:
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password