Well, let's take a closer look with a simplified class explanation Scanner.
This is a standard Oracle class that you can use by calling import java.util.Scanner.
So, let's make a basic class example:
class Scanner{
InputStream source;
Scanner(InputStream src){
this.source = src;
}
int nextInt(){
int nextInteger;
return nextInteger;
}
}
, Scanner input = new Scanner(System.in);, Scanner ( "" ), input. ( ) System.in. , .
, input.nextInt();, ( documented). , , , , , , :
int i = input.nextInt();