0

Why the (System.in) while we are creating an object for Scanner class in Java?

14th Sep 2020, 4:41 PM
Sujay G
Sujay G - avatar
2 ответов
+ 1
System.in is used for giving input from the system or the user. Whereas Scanner class is the one which accepts the input.
14th Sep 2020, 4:48 PM
Avinesh
Avinesh - avatar