Computer Science, asked by Anonymous, 1 year ago

What is Scanner Class? What's the specialty it offers to the user?

Answers

Answered by Rituj1
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

Answered by Anonymous
2
\mathfrak{The\:Answer\:is}


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.



\boxed{Hope\:This\:Helps}
Similar questions