public class stringtodouble { public static void main(String args) { String string = "1.23"; double decimal = Double.parseDouble(string); } }