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

Which is a function of the central nervous system? Ingenuity
Where does the prince lay the blame for all the deaths? OA. Paris and Lady Capulet OB. Himself and the feud between the families OC. Tybalt and Mercutio OD. Fri
Many animals have skeletons that provide support so that they can remain upright. In contrast, plants cells depend on a cellular structure for support. What str
Why would American newspapers report about the two men in that way pls help
She is busy. Es ocupado. Está ocupado. Está ocupada. Es preocupado.
Why did Joe run away to Canada? O He liked Harriet Tubman. O He wanted to work on the Underground Railroad. O He had just received an unjustified beating from h
A mutual fund is quoted at $16.56 NAV and $18.00 POP. The sales charge is A) 8.50% B) 7.75% C) 7.50% D) 8%
Directions: Choose two (2) among the five text types with gives topics and write a short example of them. Write your answer on your answer sheet.1. Explanatory
what was süleyman known for
HELP THIS LAST DAY!!!