Ask Question
19 December, 01:26

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

+2
Answers (1)
  1. 19 December, 04:13
    0
    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
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers