Tag: java scanner nextint nextdouble nextline

Keyboard Input Scanner Java

April 13, 2011 · 2 min read
The **Scanner** class is placed in **java.util** package (not in java.io) to facilitate to take input for DS (Data structure) elements. The advantage of Scanner class is parsing is not required for keyboard input data which is required with DataInputStream (as in [KeyboardReading1.java](http://way2java.com/io/keyboard-input-%e2%80%93-datainputsream/)) and BufferedReader (as in [KeyboardReading2.java](http://way2java.com/io/keyboard-input-%e2%80%93-character-streams-bufferedreader/)).