My Programming Paradise
The scanner is a class in java. util package used for getting the input from the keyboard. It is the easiest way to get input in java. Java provides various ways to read input from the keyboard.
There are many ways to read data from the keyboard. For example:
1. InputStreamReader
2. Console
3. Scanner
4. DataInputStream etc.
With the help of Scanner in Java, we can get input from the user in primitive types such as int, long, double, byte, float, short, etc.
For Video: Click here
Comments
Post a Comment