📜  JAVA 代码示例中的 SCANNER 类

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

代码示例6
The Scanner class from java.util package is used to get input of primitive types such as int, double, and strings. It’s the simplest way to read input in a Java program, but it’s inefficient if you need an input method for situations where time is a factor, such as competitive programming.