We can convert String to double in java using Double.parseDouble() method.
It is generally used if we have to perform mathematical operations on the string that contains float number. Whenever we get data from textfield or textarea, entered data is received as a string. If entered data is float, we need to convert string to float. To do so, we use Float.parseFloat() method.
public static double parseDouble(String s)
A11 Acharya Niketan
Mayur Vihar 1
Near MayurVihar Metro Station