Strng s="123.345";
double num=Double.parseDouble(s);