Computer Science, asked by arfinshariff, 1 month ago

What for can you use Scanner class ? ​

Answers

Answered by aakhyapatel18jun2012
0

Answer:

The Java Scanner class is widely used to parse text for strings and primitive types using a regular expression. It is the simplest way to get input in Java. By the help of Scanner in Java, we can get input from the user in primitive types such as int, long, double, byte, float, short, etc.

Answered by neeturana1982pundir
0

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