write the statement to create object input of scanner class
Answers
Answered by
0
Answer:
1. import java.util.Scanner; - imports the class Scanner from the library java.util.
2. Scanner scanner = new Scanner(System.in); - creates a new Scanner object, that is connected to standard input (the keyboard).
3. String inputString = scanner. nextLine();
Similar questions
English,
1 month ago
Math,
1 month ago
Social Sciences,
1 month ago
Computer Science,
2 months ago
English,
10 months ago
World Languages,
10 months ago