ERROR - java.lang.NumberFormatException - Possible Causes of NumberFormatException

Exception Thrown By:Cause
ClassMethod
BigDecimal public BigDecimal(char[]
in)
if in is not
a valid representation of a BigDecimal
BigDecimal public BigDecimal(String
val)
if val is not
a valid representation of a BigDecimal
BigDecimal public BigDecimal(double
val)
if val
is infinite or NaN
BigDecimal public static BigDecimal
valueOf(double val)
if val
is infinite or NaN
BigInteger public BigInteger(String
val)
val is not a
valid representation of a BigInteger
Byte public static byte
parseByte(String s)
if the string
does notcontain a parsable byte.value
Byte public static Byte
valueOf(String s)
If the String
doesnot contain a parsable
Byte public static Byte
decode(String nm)
if the String
does notcontain a parsable byte
Color public static Color
decode(String nm)
if the specified string
cannotbe interpreted as a decimal
Double public static Double
valueOf(String s)
if the string does
not contain a parsable number.value
Float public static Float
valueOf(String s)
if the string
does not contain aparsable number.value
Integer public static int
parseInt(String s)
if the string does
not contain a parsable integer.parse
Integer public static int
parseUnsignedInt(String s)
if the string does
not contain aparsable unsigned integer.
Integer public static Integer
valueOf(String s)
if the string cannot
be parsed as an integer
Integer public static Integer
decode(String nm)
if the String
does notcontain a parsable integer
Long public static long
parseLong(String s)
if the string does
not contain a parsable long.parse
Long public static long
parseUnsignedLong(String s)
if the string does
not contain aparsable unsigned integer.
Long public static Long
valueOf(String s)
If the string cannot
be parsed as a long.value
Long public static Long
decode(String nm)
if the String
does notcontain a parsable long
Short public static short
parseShort(String s)
If the string
does notcontain a parsable short.value
Short public static Short
valueOf(String s)
If the String
doesnot contain a parsable short.value
Short public static Short
decode(String nm)
if the String
does notcontain a parsable short