1The Java Scanner class is widely used to parse text for strings
2and primitive types using a regular expression.
3It is the simplest way to get input in Java.
4By the help of Scanner in Java, we can get input from the user
5in primitive types such as int, long, double, byte, float, short, etc.
6
7
8Scanner in = new Scanner(System.in);
9