0
How To Accept Values In InputStreamReader And BufferedReader
JAVA
7 Antworten
+ 2
try(BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
String name = br.readLine();
int age = Integer.parseInt(br.readLine());
}catch(Exception e){
e.printStackTrace();
}
+ 1
what do you need to do?
0
I Want To Accept A Name And Age..What Should I Do?
0
name must come first, age second. if you want another various you should swap name and age
0
What Does printStackTrace(); Do?
0
this is method for print the exception in stacktrace, if you get it
0
are you understand?