Java Platform 1.2

Uses of Class
java.lang.NumberFormatException

Packages that use NumberFormatException
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
 

Uses of NumberFormatException in java.awt
 

Methods in java.awt that throw NumberFormatException
static Color Color.decode(String nm)
          Converts a string to an integer and returns the specified opaque color.
 

Uses of NumberFormatException in java.lang
 

Methods in java.lang that throw NumberFormatException
static byte Byte.parseByte(String s)
          Assuming the specified String represents a byte, returns that byte's value.
static byte Byte.parseByte(String s, int radix)
          Assuming the specified String represents a byte, returns that byte's value.
static Byte Byte.valueOf(String s, int radix)
          Assuming the specified String represents a byte, returns a new Byte object initialized to that value.
static Byte Byte.valueOf(String s)
          Assuming the specified String represents a byte, returns a new Byte object initialized to that value.
static Byte Byte.decode(String nm)
          Decodes a String into a Byte.
static short Short.parseShort(String s)
          Assuming the specified String represents a short, returns that short's value.
static short Short.parseShort(String s, int radix)
          Assuming the specified String represents a short, returns that short's value.
static Short Short.valueOf(String s, int radix)
          Assuming the specified String represents a short, returns a new Short object initialized to that value.
static Short Short.valueOf(String s)
          Assuming the specified String represents a short, returns a new Short object initialized to that value.
static Short Short.decode(String nm)
          Decodes a String into a Short.
static Double Double.valueOf(String s)
          Returns a new Double object initialized to the value represented by the specified string.
static double Double.parseDouble(String s)
          Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
static long Long.parseLong(String s, int radix)
          Parses the string argument as a signed long in the radix specified by the second argument.
static long Long.parseLong(String s)
          Parses the string argument as a signed decimal long.
static Long Long.valueOf(String s, int radix)
          Returns a new long object initialized to the value of the specified String.
static Long Long.valueOf(String s)
          Returns a new long object initialized to the value of the specified String.
static Long Long.decode(String nm)
          Decodes a String into a Long.
static Float Float.valueOf(String s)
          Returns the floating point value represented by the specified String.
static float Float.parseFloat(String s)
          Returns a new float initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
 boolean Package.isCompatibleWith(String desired)
          Compare this package's specification version with a desired version.
static int Integer.parseInt(String s, int radix)
          Parses the string argument as a signed integer in the radix specified by the second argument.
static int Integer.parseInt(String s)
          Parses the string argument as a signed decimal integer.
static Integer Integer.valueOf(String s, int radix)
          Returns a new Integer object initialized to the value of the specified String.
static Integer Integer.valueOf(String s)
          Returns a new Integer object initialized to the value of the specified String.
static Integer Integer.decode(String nm)
          Decodes a String into an Integer.
 

Constructors in java.lang that throw NumberFormatException
Byte.Byte(String s)
          Constructs a Byte object initialized to the value specified by the String parameter.
Short.Short(String s)
          Constructs a Short object initialized to the value specified by the String parameter.
Double.Double(String s)
          Constructs a newly allocated Double object that represents the floating- point value of type double represented by the string.
Long.Long(String s)
          Constructs a newly allocated Long object that represents the value represented by the string in decimal form.
Float.Float(String s)
          Constructs a newly allocated Float object that represents the floating-point value of type float represented by the string.
Integer.Integer(String s)
          Constructs a newly allocated Integer object that represents the value represented by the string.
 


Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.