scanner
2 tutorials tagged “scanner”.
- Scanner ClassRead keyboard input with Scanner: next, nextInt and nextLine, how input is split into tokens, the nextInt-then-nextLine trap, and bad input.
- Scanner vs BufferedReaderTwo ways to read console input: Scanner, which converts types for you, and BufferedReader, which reads whole lines fast. When to choose which.