string to double java

Java
public class stringtodouble {
	public static void main(String args) {
    	String string = "1.23";
      	double decimal = Double.parseDouble(string);
    }
}Double d = Double.valueOf(String str);String text = "12.34"; // example String
double value = Double.parseDouble(text);
Source

Also in Java: