to double from string code example
Example 1: java string to double
Double d = Double.valueOf(String str);
Example 2: java string to double
Double myDouble = Double.parseDouble("23.5");
Double d = Double.valueOf(String str);
Double myDouble = Double.parseDouble("23.5");