Swipe to navigate through the chapters of this book
The class Scanner enables reading data from the keyboard, a String object, or a text file using the characters (the white space character ’ ’, the tab-stop ’∖t’, and the newline ’∖n’) as separators (such characters are called delimiters).
Please log in to get access to this content
To get access to this content you need the following product:
Although we do not use them in this book, String has many constructors (for various examples, see https://docs.oracle.com/javase/7/docs/api/java/lang/String.html).
- Reading Keyboard Input
- Springer International Publishing
- Sequence number
- Chapter number