You can convert a String to double using valueOf() and doubleValue() methods of Double wrapper class as follows.

double d = Double.valueOf(str).doubleValue();