There is nothing wrong with Integer.parseInt(). It blows up if you give it invalid input. That's standard idiomatic behavior.
It might be helpful to have Integer.validateInt(String), but currently it's up to author to do that themselves.
It might be helpful to have Integer.validateInt(String), but currently it's up to author to do that themselves.
No comments yet.