📜  扫描仪类在java代码示例中的作用

📅  最后修改于: 2022-03-11 14:52:34.886000             🧑  作者: Mango

代码示例1
The Java Scanner class is widely used to parse text for strings 
and primitive types using a regular expression.
It is the simplest way to get input in Java. 
By 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.
  

Scanner in = new Scanner(System.in);