490 views
5 votes
write a line of java code that will declare a double variable named x that is initialized to the value 90.24.

User Nikans
by
8.3k points

1 Answer

3 votes

The line of Java code that declares a double variable named x and initializes it to the value 90.24 is:

double x = 90.24;

This declares a variable of type double with the identifier "x" and assigns it the value 90.24.

User Chris Woods
by
7.8k points