How to detect overflow when convert string to integer in java
<p>if I want to convert a string into an int in java
do you know if there is a way for me to detect overflow?
by that I mean the string literal actually represents a value which is larger than MAX_INT?</p>

<p>java doc didn't mention it..
it just says that if the string can not be parsed as an integer, it will through FormatException
didn't mention a word about overflow..</p>
