0

BufferedReader or Scanner for keyboard input and why?

What's different between BufferedReader and Scanner.

12th Jan 2017, 4:46 PM
Š”ŠµŃ€Š³ŠµŠ¹ Š‘ŠµŠ“рŠøцŠŗŠøŠ¹
Š”ŠµŃ€Š³ŠµŠ¹ Š‘ŠµŠ“рŠøцŠŗŠøŠ¹ - avatar
1 Answer
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