In Java, what is the Scanner class used for?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the Javadoc:
Basically, you can initialize a Scanner with some input stream and a format or delimiter, then use it to iterate over “tokens” (broken-up chunks of text) that it generates from that input stream with the delimiter info you give it.