Computer Science, asked by ayusmaan14, 1 year ago

Why Scanner class is used in JAVA

Answers

Answered by Deveshu
1
Scanner Class in Java. Scanner is aclass in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. ... To create an object of Scanner class, we usually pass the predefined object System.in, which represents the standard input stream.
Answered by amitaagarwal4827
1

Answer:

the scanner class is used to get user input and it is found in the java.util package.

mark it as the brainliest answer pleaseeeee

Similar questions