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
Accountancy,
19 days ago
Hindi,
19 days ago
Computer Science,
1 month ago
English,
9 months ago
World Languages,
9 months ago