Type: Posts; User: PhHein
You will have to convert the input from String to a number. If the user enters something else, a NumberFormatException or something similar will occur. Read the API docs for the various parse()...
The input is not a number.
System.err.println( "error" );