+ 3

How BufferedReader is more useful than Scanner

JAVA

26th May 2017, 6:13 AM
Buland Sahu
Buland Sahu - avatar
2 Antworten
+ 19
java.util.Scanner class is a simple text scanner which can parse primitive types and strings. It internally uses regular expressions to read different types. BufferedReader is a bit faster as compared to Scanner because Scanner does parsing of input data and BufferedReader simply reads sequence of characters.
26th May 2017, 6:16 AM
Dev
Dev - avatar
+ 2
Thanks for the info although I don't understand 😂😂
26th May 2017, 6:31 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar