Answer the question
In order to leave comments, you need to log in
How to understand how a piece of code works?
I do not really understand what is happening in the first 3 lines, please explain.
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String name = bufferedReader.readLine();
String sAge = bufferedReader.readLine();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
Answer the question
In order to leave comments, you need to log in
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question