Create an object of type Double with the initial value of x and assign it to the reference variable myDouble.

Create an object of type Double with the initial value of x and assign it to the reference variable myDouble.

LANGUAGE:  JAVA

CHALLENGE:

Suppose a reference variable of type Double called myDouble has already been declared.
There is also a double variable x that has been declared and initialized.
Create an object of type Double with the initial value of x and assign it to the reference variable myDouble.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level