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

Pre-questioning identifies a purpose for reading ? T/F
The coordinates of the vertices of parallelogram RMBS are R(–4, 5), M(1, 4), B(2, –1), and S(–3, 0). Using the diagonals, prove that RMBS is a rhombus. Show all
In an explanatory essay, how are body paragraphs different from the concluding paragraph? A. Each body paragraph should foc
What are your rights if border agents want to search your phone?
What type of biome supports about 70 percent of all living organisms a) grassland b) deserts c) forests d) oceans
What two positive real numbers whose product is 46 have the smallest possible​ sum?
The equation y=mx+b is the slope-intercept form of the equation of a line. What is the equation solved for b?
Qui est un pays au Canada qui a une population de plus de 2000
I need help with multiplying a fraction by a whole number use symbols
can somebody translate this please Bonjour! Je suis Marianne et je suis de Montpellier, France. Voici une photo de ma famille. Sur la photo, ce sont mes grands-