role of scanner class in java

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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