Scanner
A standard-library class commonly used to read typed input.
What is Scanner in Java?
Scanner — A standard-library class commonly used to read typed input.
import java.util.Scanner;
class Registration {
String readName(Scanner input) {
return input.nextLine();
}
}
Level: Apprentice · More Java terms at this level
Updated