3 ms·
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 Integ
by kerblang 7mo ago
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.