I used this: ⬇️
int age = Integer.parseInt(reader.readLine());
It displayed an error which is "java.lang.NumberFormatException: For input string: "" " when it runs. (My origin codes error I post below) However, when I use this:⬇️
String age=reader.readLine();
Integer.parseInt(age);
The age as an argument works well. So, there is anybody who can tell why?