Ask 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 can be used to read tokens from a file Scanner can be used to print tokens to the screen

+3
Answers (1)
  1. 15 January, 15:53
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers