Tag: scanner read scanning in java

Java Scanner class

May 9, 2013 · 1 min read
##### To make coding less, the Designers introduced java.util.Scanner (Scanner is not from java.io package) in Java 5. Earlier to Java Scanner class, keyboard input was taken using [DataInputStream](http://way2java.com/io/keyboard-input-%e2%80%93-datainputsream/) and [BufferedReader](http://way2java.com/io/keyboard-input-%e2%80%93-character-streams-bufferedreader/), both requiring extra code of parsing the user input. Java Scanner avoids parsing.