Math, asked by skbisht3702, 11 months ago

What do you mean by scanner class.

Answers

Answered by infinity1000
21

Answer:

Scanner Class in Java. Scanner is a class 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 sneha413639
3

Answer:

Scanner is a class in java. util package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the easiest way to read input in a Java program, though not very efficient if you want an input method for scenarios where time is a constraint like in competitive programming.

Similar questions