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 feature is most important for a chemical storage area?
How does dialogue help with characterization?
Which type of policy is controlled by the board of governors of the federal reserve
Solve for y=7x-3w for x
Please help with math question!
Unlike in society, a scientific _____ is simply a description of what we see.
What is the principle behind the Constitution's division of power between federal and state governments? A. Republicanism B. Federalism C. Rule of law D. Checks
The state of Colorado has roughly the shape of a rectangle that is 3.8 x 102 miles long and 2.8 x 102 miles high. What is the approximate area of Colorado? Hin
which statement describe the charge of an electron and the charge of a proton
You have been appointed to a health education team at your school. Your job is to develop the criteria for the health information you will be sharing with stude