public static double parseDouble (String s) throws NumberFormatException

Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

s    the string to be parsed.

Returns:  the double value represented by the string argument.

NullPointerException    if the string is null
NumberFormatException    if the string does not contain a parsable double.

See also:

Since:  1.2