Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java needs a TryParseInt (sorta like C# has) so can you use either one as appropriate.

There are actually two main use cases for integer parsing: one where the value is expected to be an integer (you're parsing a file format) and the other where it's just likely not to be an integer (getting input from the user).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: