Here you can find the source of convertStringToDouble(String num)
public static double convertStringToDouble(String num)
//package com.java2s; //License from project: Open Source License public class Main { public static double convertStringToDouble(String num) { double val = 0; if (num != null) { val = Double.parseDouble(num); }// w w w .j ava 2 s. co m return val; } }