+ 1

What is the role of system.in

hello, I don't understand what is system.in as I understand, system.in is a Standart input using InputStream but why do I need to use Scanner or BufferedReader etc ? thank you

30th Apr 2017, 4:52 PM
Clément BOCAGE
Clément BOCAGE - avatar
3 Respuestas
0
When you do Java, you will regularly have those "Why Do I Have To Do This By Hand? What Else Could I Possibly Want?" moments.
30th Apr 2017, 5:15 PM
1of3
1of3 - avatar
0
I understand but in the other hand I don't understand what is exactly System.in is it an input or something else ?
30th Apr 2017, 5:18 PM
Clément BOCAGE
Clément BOCAGE - avatar
0
It is an input stream, yes. And by default it's your console / command line.
1st May 2017, 5:25 AM
1of3
1of3 - avatar