Respuesta :

Related Articles. Scanner is a class in java. util package used for obtaining the input of the primitive types like int, double, etc. and strings.