0

When should we use java.util.Scanner?

8th Aug 2019, 4:10 PM
Samuel
Samuel - avatar
4 Answers
+ 11
For taking input from users
8th Aug 2019, 4:21 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 8
8th Aug 2019, 4:49 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
It is needed when you have to input information to the system. For instance, if it requires a name where you need to type it, that's when you use scanner(System.in)method.
8th Aug 2019, 8:33 PM
david gĂłmez
david gĂłmez - avatar