Skip to main content

Convert java double to Double object Example in Java

CODING:
public class JavadoubleToDoubleExample {
  public static void main(String[] args) {
    double d = 10.56;
    Double dObj = new Double(d);
    System.out.println(dObj);
  }
}

OUTPUT:

10.56


Comments