// 在jdk1.3_01调试通过import java.util.*;public class test1
{
public static void main(String args[])
{
test1 t = new test1();
t.toDouble("0.1");
}
public void toDouble(String str)
{
System.out.println(Double.parseDouble(str));
}
}
{
public static void main(String args[])
{
test1 t = new test1();
t.toDouble("0.1");
}
public void toDouble(String str)
{
System.out.println(Double.parseDouble(str));
}
}
String strDbl = "0.99";
double d = Double.parseDouble(strDbl);