Computer Science, asked by rakeshchaddha1978, 1 month ago

write the statement to create object input of scanner class​

Answers

Answered by dasmirasree6
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