+ 1
Eplain importjava.uti.scannar
explain scannar in java
2 Antworten
0
Basically handles the input stream in a way, you can handle it more easily without caring about bytes and dat stuff. You call Scanner::nextLine, you've read a string from console, or you call Scanner::nextInt, and you've read and casted an integer. Scanner is typically used for just that - an easy way for console input handling.
Read the answer here:
https://stackoverflow.com/questions/11871520/
0
scanner is a class that take input from user.
import(bring) java(from java) .util(in the utility package) . scanner(this class)