question: public static java . lang . Double valueOf ( java . lang . String s ) throws java . lang . NumberFormatException { return new Double ( parseDouble ( s ) ) ; }
target:  Returns a new Double object initialized to the value represented by the specified string. The string s is interpreted as the representation of a floating-point value and a Double object representing that value is created and returned. If s is null, then a NullPointerException is thrown. Leading and trailing whitespace characters in s are ignored. The rest of s should constitute a FloatValue as described by the lexical rule: where and are as defined in Section 3.10.2 of the . If it does not have the form of a , then a NumberFormatException is thrown. Otherwise, it is regarded as representing an exact decimal value in the usual "computerized scientific notation"; this exact decimal value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type double by the usual round-to-nearest rule of IEEE 754 floating-point arithmetic. Finally, a new object of class Double is created to represent the double value.