Convert string to double
public class ConvertStringToDouble { public static void main(String[] args) { String aString = "78"; double aDouble = Double.parseDouble(aString); System.out.println(aDouble); } }