Uses of Class
java.lang.NumberFormatException
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes that are fundamental to the design of the Java
programming language.
-
Uses of NumberFormatException in java.awt
-
Uses of NumberFormatException in java.lang
Modifier and TypeMethodDescriptionstatic Byte
Decodes aString
into aByte
.static Integer
Decodes aString
into anInteger
.static Long
Decodes aString
into aLong
.static Short
Decodes aString
into aShort
.boolean
Package.isCompatibleWith(String desired)
Compare this package's specification version with a desired version.static byte
Parses the string argument as a signed decimalbyte
.static byte
Parses the string argument as a signedbyte
in the radix specified by the second argument.static double
Double.parseDouble(String s)
Returns a newdouble
initialized to the value represented by the specifiedString
, as performed by thevalueOf
method of classDouble
.static float
Float.parseFloat(String s)
Returns a newfloat
initialized to the value represented by the specifiedString
, as performed by thevalueOf
method of classFloat
.static int
Integer.parseInt(CharSequence s, int beginIndex, int endIndex, int radix)
Parses theCharSequence
argument as a signedint
in the specifiedradix
, beginning at the specifiedbeginIndex
and extending toendIndex - 1
.static int
Parses the string argument as a signed decimal integer.static int
Parses the string argument as a signed integer in the radix specified by the second argument.static long
Long.parseLong(CharSequence s, int beginIndex, int endIndex, int radix)
Parses theCharSequence
argument as a signedlong
in the specifiedradix
, beginning at the specifiedbeginIndex
and extending toendIndex - 1
.static long
Parses the string argument as a signed decimallong
.static long
Parses the string argument as a signedlong
in the radix specified by the second argument.static short
Short.parseShort(String s)
Parses the string argument as a signed decimalshort
.static short
Short.parseShort(String s, int radix)
Parses the string argument as a signedshort
in the radix specified by the second argument.static int
Integer.parseUnsignedInt(CharSequence s, int beginIndex, int endIndex, int radix)
Parses theCharSequence
argument as an unsignedint
in the specifiedradix
, beginning at the specifiedbeginIndex
and extending toendIndex - 1
.static int
Integer.parseUnsignedInt(String s)
Parses the string argument as an unsigned decimal integer.static int
Integer.parseUnsignedInt(String s, int radix)
Parses the string argument as an unsigned integer in the radix specified by the second argument.static long
Long.parseUnsignedLong(CharSequence s, int beginIndex, int endIndex, int radix)
Parses theCharSequence
argument as an unsignedlong
in the specifiedradix
, beginning at the specifiedbeginIndex
and extending toendIndex - 1
.static long
Long.parseUnsignedLong(String s)
Parses the string argument as an unsigned decimallong
.static long
Long.parseUnsignedLong(String s, int radix)
Parses the string argument as an unsignedlong
in the radix specified by the second argument.static Byte
Returns aByte
object holding the value given by the specifiedString
.static Byte
Returns aByte
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static Double
Returns aDouble
object holding thedouble
value represented by the argument strings
.static Float
Returns aFloat
object holding thefloat
value represented by the argument strings
.static Integer
Returns anInteger
object holding the value of the specifiedString
.static Integer
Returns anInteger
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static Long
Returns aLong
object holding the value of the specifiedString
.static Long
Returns aLong
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.static Short
Returns aShort
object holding the value given by the specifiedString
.static Short
Returns aShort
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.