Ask Question
17 April, 08:38

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. 17 April, 12:01
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers