📜  java 扫描器堆栈溢出 - Java 代码示例

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

代码示例3
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);