Double(double)
构造一 Double 对象,表示给定的 double 参数。
参数:
value - Double 对象表示的值。Double(String)
构造一的 Double 对象,表示给定字符串对应的 double 型浮点值。 该方法与 valueOf 方法类似,可以将字符串转换为双精度浮点数。
参数:
s - 转换为 Double 型的串。
抛出: NumberFormatException
如果该串不包含一个可分裂的数字。
构造一 Double 对象,表示给定的 double 参数。
参数:
value - Double 对象表示的值。Double(String)
构造一的 Double 对象,表示给定字符串对应的 double 型浮点值。 该方法与 valueOf 方法类似,可以将字符串转换为双精度浮点数。
参数:
s - 转换为 Double 型的串。
抛出: NumberFormatException
如果该串不包含一个可分裂的数字。
Constructs a newly allocated Double object that represents the primitive double argument.
Double(String s)
Constructs a newly allocated Double object that represents the floating-point value of type double represented by the string.