Computer Science, asked by Anonymous, 5 months ago

Can anyone tell in detail that how can we use scanner class in Java.

If u don't know then stay far....​

Answers

Answered by Tanushree1200
4

Answer:

To use scanner class

the first command is

import java.util*;

then class name

{

then void function

{

then we have to write : Scanner class=newScanner(System.in);

I hope it helped you

please thank my answer if satisfied

Answered by contactssonika
2

Answer:

please mark as brainliest

Explanation:

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.

Similar questions