Java Convert String to Double



public class ConvertStringToDouble {
  public static void main(String[] args) {
    String aString = "78";
    double aDouble = Double.parseDouble(aString);
 
    System.out.println(aDouble);
  }
}