Abstract
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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
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).
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Ogihara, M. (2018). Reading Keyboard Input. In: Fundamentals of Java Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-89491-1_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-89491-1_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-89490-4
Online ISBN: 978-3-319-89491-1
eBook Packages: Computer ScienceComputer Science (R0)