March 2002
Intermediate to advanced
480 pages
18h 40m
English
NumberFormatException
This exception signals that an attempt has been made to convert a
String to a numeric type when the
String contains a sequence of characters that does
not form a valid number. This class is the same as its J2SE equivalent,
apart from its inability to be serialized.
public class NumberFormatException extends IllegalArgumentException {
// Public Constructors
public NumberFormatException();
public NumberFormatException( String s);
}
Byte.parseByte(), Integer.{parseInt(), valueOf()}, Long.parseLong(), Short.parseShort()
Read now
Unlock full access