Steps for attaching scanner
What is Scanner?
A class that represents text-based parser.
It can parse text data from any source console input,text file, socket, string.
Create instance of Scanner class
constructor:
Scanner(InputStream in)
stdin:
System.in
To check data type of input type currenly present in the input strream use
To read data
Last updated