0

BufferedReader or Scanner for keyboard input and why?

What's different between BufferedReader and Scanner.

12th Jan 2017, 4:46 PM
Сергей Бедрицкий
Сергей Бедрицкий - avatar
1 Antwort
0
For me, BufferedReader. There were times that when I need multiple inputs, then I do multiple: scanner.nextLine(), when running, it skips the other nextLines and it is busting my program up. But when I use BufferedReader, my code works according to how I wanted it to work. That's based on my experience xD
12th Jan 2017, 10:20 PM
Erwin Mesias
Erwin Mesias - avatar