double d1 = Double.parseDouble("3.14");
Double d2 = Double.parseDouble("3.14");parseDouble返回的是double,为什么Double的封装器也能接受呀parseDouble
public static double parseDouble(String s)
throws NumberFormatExceptionReturns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
Double d2 = Double.parseDouble("3.14");parseDouble返回的是double,为什么Double的封装器也能接受呀parseDouble
public static double parseDouble(String s)
throws NumberFormatExceptionReturns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.
我是看的scjp的035
1.4版本!
用1.5的jdk呵呵