📅  最后修改于: 2022-03-11 14:52:19.613000             🧑  作者: Mango
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.