String a1="1234"; double b1=Double.valueOf(a1); double b2=Double.parseDouble(a1); System.out.println("b1 : "+b1+" "+"b2 : "+b2); // b1 : 1234.0 b2 : 1234.0