Uses of Class
java.lang.NumberFormatException

Packages that use NumberFormatException
Package Description
java.lang  
  • Uses of NumberFormatException in java.lang

    Methods in java.lang that throw NumberFormatException
    Modifier and Type Method Description
    static Byte Byte.decode​(String string)
    Parses the specified string and returns a Byte instance if the string can be decoded into a single byte value.
    static Integer Integer.decode​(String string)
    Parses the specified string and returns a Integer instance if the string can be decoded into an integer value.
    static Long Long.decode​(String string)
    Parses the specified string and returns a Long instance if the string can be decoded into a long value.
    static Short Short.decode​(String string)
    Parses the specified string and returns a Short instance if the string can be decoded into a short value.
    boolean Package.isCompatibleWith​(String version)
    Indicates whether this package's specification version is compatible with the specified version string.
    static byte Byte.parseByte​(String string)
    Parses the specified string as a signed decimal byte value.
    static byte Byte.parseByte​(String string, int radix)
    Parses the specified string as a signed byte value using the specified radix.
    static double Double.parseDouble​(String string)
    Parses the specified string as a double value.
    static float Float.parseFloat​(String string)
    Parses the specified string as a float value.
    static int Integer.parseInt​(String string)
    Parses the specified string as a signed decimal integer value.
    static int Integer.parseInt​(String string, int radix)
    Parses the specified string as a signed integer value using the specified radix.
    static long Long.parseLong​(String string)
    Parses the specified string as a signed decimal long value.
    static long Long.parseLong​(String string, int radix)
    Parses the specified string as a signed long value using the specified radix.
    static short Short.parseShort​(String string)
    Parses the specified string as a signed decimal short value.
    static short Short.parseShort​(String string, int radix)
    Parses the specified string as a signed short value using the specified radix.
    static Byte Byte.valueOf​(String string)
    Parses the specified string as a signed decimal byte value.
    static Byte Byte.valueOf​(String string, int radix)
    Parses the specified string as a signed byte value using the specified radix.
    static Double Double.valueOf​(String string)
    Parses the specified string as a double value.
    static Float Float.valueOf​(String string)
    Parses the specified string as a float value.
    static Integer Integer.valueOf​(String string)
    Parses the specified string as a signed decimal integer value.
    static Integer Integer.valueOf​(String string, int radix)
    Parses the specified string as a signed integer value using the specified radix.
    static Long Long.valueOf​(String string)
    Parses the specified string as a signed decimal long value.
    static Long Long.valueOf​(String string, int radix)
    Parses the specified string as a signed long value using the specified radix.
    static Short Short.valueOf​(String string)
    Parses the specified string as a signed decimal short value.
    static Short Short.valueOf​(String string, int radix)
    Parses the specified string as a signed short value using the specified radix.
    Constructors in java.lang that throw NumberFormatException
    Constructor Description
    Byte​(String string)
    Constructs a new Byte from the specified string.
    Double​(String string)
    Constructs a new Double from the specified string.
    Float​(String string)
    Constructs a new Float from the specified string.
    Integer​(String string)
    Constructs a new Integer from the specified string.
    Long​(String string)
    Constructs a new Long from the specified string.
    Short​(String string)
    Constructs a new Short from the specified string.