What is Scanner Class? What's the specialty it offers to the user?
Answers
Answered by
3
The java.util.Scanner class is a simple text scanner which can parse primitive types and strings using regular expressions.Following are the important points about Scanner −
A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.
A scanning operation may block waiting for input.
A Scanner is not safe for multithreaded use without external synchronization
A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.
A scanning operation may block waiting for input.
A Scanner is not safe for multithreaded use without external synchronization
Answered by
2
The Scanner Class is a class in java.util, package that allows the user to read values of various types,from either keyboard or a file.It has some of the most interesting functions that allow identification and storing of data that is being input from the keyboard.
Similar questions
Social Sciences,
7 months ago
Computer Science,
7 months ago
English,
7 months ago
Hindi,
1 year ago