convert an string to an duble code example Example: java string to double Double d = Double.valueOf(String str);