Use Double constructor to convert double primitive type to a Double object.
public class Main { public static void main(String[] args) { double d = 10.56; Double dObj = new Double(d); System.out.println(dObj); } }