int num = Integer.parseInt(parseString)
which would be correct, if the String to parse was, for instance,
String toParse = "97";
int num = Integer.parseInt(toParse);
but with an input-String like "asu", like in the example he gives us, this will lead to the necessary exceptions, since "asu" is not recognized as an Integer value
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
Offline 2,487 posts
since Jan 2007