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 concerns of the Anti-Federalists were satisfactorily resolved in the Constitution?
What groups were excluded from this widening of political opportunity? Why?
Money managers: A. help people set up budgets to control personal spending. B. typically work for investment banks. C. are on the sell side of Wall Street. D
Compare and contrast a series and parallel circuit. Give at least one way that they are alike and one way that they are different
What important decisions had to be made concerning the fate of the seceded states and the rights of those freed from slavery?
how did geography influence the location of European colonies?
Why are trees considered to be producers? A. they do not need food to survive in an ecosystem B. they depend on consumers to help them make their food C. they g
The rise of China's naval power under Admiral Cheng-Ho occurred during the _______ dynasty
How did European affairs complicate the internal political and diplomatic problems of the new country (US)?
round 9,254 to the nearest hundred