Scanner can be used to read tokens from a String literal Scanner can be used to read tokens from the console window (user input) Scanner can be used to read tokens from a file Scanner can be used to print tokens to the screen

Respuesta :

Answer:

Scanner can be used to read tokens from the console window (user input)

Explanation:

Scanner is a class used in some programming languages to obtain inputs from users.

It is mostly well developed in Java programming language and used exclusively for taking and obtaining inputs.

Scanner takes input in primitive types such as doubles, floats and integers. IT also takes string inputs.

Here is a code snippet where the class scanner is used:

         Scanner input = new Scanner (System.in)

The code above creates an object of the scanner class

ACCESS MORE