KnowledgeBoat Logo
|

Computer Applications

The method to convert a String to double is:

  1. String.toDouble()
  2. Double.Parsedouble()
  3. Double.parseDouble(String)
  4. Double.parseDouble()

Java Library Classes

1 Like

Answer

Double.parseDouble(String)

Reason — The method parseDouble in the Double class is used to convert a String representing a numeric value into a primitive double type.

Answered By

1 Like


Related Questions