0
What is a Buffered reader?
6 Antworten
+ 3
buffered reader is a library class in java that reads data from input stream in the form of string.
+ 1
These answers don't do any explaining add to what the actual difference is. While it is true that it is another way to get input, there's more to it than that.
Unfortunately, I'm not sure what the exact difference is. I think the reader pre-buffers the text from a file into a string, but that could be totally wrong.
EDIT: From quora.com answering the question of the difference between scanner and BufferedReader:
"
BufferedReader has significantly larger buffer memory than Scanner. Use BufferedReader if you want to get long strings from a stream, and use Scanner if you want to parse specific type of token from a stream
Scanner can use tokenize using custom delimiter and parse the stream into primitive types of data, while BufferedReader can only read and store String.
BufferedReader is synchronous while Scanner is not. Use BufferedReader if you're working with multiple threads
"
0
another way to read a user's input.
0
another way to take input from user is bufferedreader which is defined in java.io.*
- 1
Hmm
- 1
java.util.Scanner is an easier way to take an input....in my opinion....no offence....😃😀😅😇🤔