Computer Science, asked by omyadavf, 2 months ago

who receive input through the keyboard​

Answers

Answered by Nancy984
0

Input from the keyboard

import java.util.Scanner; - imports the class Scanner from the library java.util.

Scanner scanner = new Scanner(System.in); - creates a new Scanner object, that is connected to standard input (the keyboard)

String inputString = scanner. nextLine();

Similar questions