/**
* Returns a <code>Double</code> object holding the
* <code>double</code> value represented by the argument string
* <code>s</code>.
*
*
If <code>s</code> is <code>null</code>, then a
* <code>NullPointerException</code> is thrown.
*
*
Leading and trailing whitespace characters in <code>s</code>
* are ignored. Whitespace is removed as if by the {@link
* String#trim} method; that is, both ASCII space and control
* characters are removed. The rest of <code>s</code> should
* constitute a [i]FloatValue[/i] as described by the lexical
* syntax rules:
*
[..]
* @param s the string to be parsed.
* @return a <code>Double</code> object holding the value
* represented by the <code>String</code> argument.
* @exception NumberFormatException if the string does not contain a
* parsable number.
*/
public static Double valueOf(String s) throws NumberFormatException {
return new Double(FloatingDecimal.readJavaFormatString(s).doubleValue());
}
/**
* Returns a new <code>double</code> initialized to the value
* represented by the specified <code>String</code>, as performed
* by the <code>valueOf</code> method of class
* <code>Double</code>.
*
* @param s the string to be parsed.
* @return the <code>double</code> value represented by the string
* argument.
* @exception NumberFormatException if the string does not contain
* a parsable <code>double</code>.
* @see java.lang.Double#valueOf(String)
* @since 1.2
*/
public static double parseDouble(String s) throws NumberFormatException {
return FloatingDecimal.readJavaFormatString(s).doubleValue();
}
Double time=null;
time=Double.valueOf(string);
time=Double.parseDouble(string);
Double a, b, c;
a = b + c;
a = Double.valueOf( b.doubleValue() + c.doubleValue() );