kparker1640 kparker1640
  • 03-07-2019
  • Computers and Technology
contestada

The ____ method takes a String argument and returns its double value.

a.
parseString()

b.
returnDouble()

c.
parseInt()

d.
parseDouble()

Respuesta :

Iqta
Iqta Iqta
  • 14-07-2019

Answer:

d

Explanation:

In java you can use pareDouble(string str) to convert the string into double.

for example if you have string like this.

string str  = [tex]"16.45" ;[/tex]

then you can use

double mydouble = Double.parseDouble(str);

print(mydouble); //it will print out 16.45

but if the string would not be able to be parsed into double then you will get an error.

Answer Link

Otras preguntas

What were the main reasons Britain gave for placing all these new taxes on the colonists?
Which of the following Equations have infinity many solutions
A company claims that their new bottle holds 25% more laundry soap.if their original container held 53 fluid ounces of soap,how much does the new container hold
SUB TO thunderoflight12 to GET FREE BRAINLYESIT
You roll one dice. How many ways can you get an odd number or a number greater than 5?
How does Fitzgerald’s language create the reckless, carnival-like atmosphere at Gatsby’s party? Consider figurative language, imagery, and word choice in genera
To make a 7.21M solution, how many moles of solute will be needed if 12.0 liters of solution is required? (Stoichiometry)
Susie is solving the quadratic​
find the value of x.
The book Uncle Tom's Cabin by Harriet Beecher Stowe was popular among southern planters for its positive portrayal of slavery and the rural South