role of scanner class in java

Solutions on MaxInterview for role of scanner class in java by the best coders in the world

showing results for - "role of scanner class in java"
Nicole
24 Jan 2016
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