public class Main {
public static void main(String[] args) {
/*
n o w j a v a . c o m - 时 代 Java
*/
//create a Double object using one of the below given constructors
//1. Create an Double object from double primitive type
double d = 10.10;
Double dObj1 = new Double(d);
System.out.println(dObj1);
/*
2. Create Double object from String. this method can
throw NumberFormatException if the string doesn't contain number.
*/
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。