How to get a double from a string code example Example: java string to double Double d = Double.valueOf(String str);