package e5_3;
public class WrapperDemo {
public static void main(String[] args) {
System.out.print("Double中的常量");
System.out.println(Double.NaN);//输出double中的常量
double d1 = 34.3;
Double d = new Double(d1);
System.out.println("d:"+d);
String s = d.toString();//转化为字符类型
System.out.println("s:"+s);
double d2 = d.doubleValue();//提取简单类型值
System.out.println("d2:"+d2);
double d3 = Double.parseDouble(s);//将字符类型转化为基本数据类型
System.out.println("d3:"+d3);
}
}