Did you try parsing a number residing in a String and an exception occured when that number was 8 or 9?
Parsing String numbers
When parsing numbers residing in Strings one should pay attention to the parsing method.
There are several parsing methods in the Integer Class, and not all of them parse the numbers in a Decimal (Base 10) order.
For example if you'll try running the following line of code - an exception will be thrown: Integer i = Integer.decode("09");
The exception will be thrown due to the simple fact that there is no numeric character 09 when you use an Octalic counting base (Which is the decode method's default).
Try using a different method for a Decimal based number.
So, in order to correct our specific example we should use: Integer i = Integer.parseInt("09");
Comments
If you strip off the zero, and do it this way:
Integer i = Integer.decode ("9");
then it will work just fine.