The method takes a string argument and returns its double value. a. parsestring() b.

The method takes a string argument and returns its double value.
a.
parsestring()
b.
returndouble()
c.
parseint()
d.
parsedouble()

Related Posts

This Post Has 3 Comments

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *