String a = "269";
double parseDouble = Double.parseDouble(b);
System.out.println(“Double a=”+ parseDouble);
输出:Double a=269.0
时间: 2024-11-18 19:21:11
String a = "269";
double parseDouble = Double.parseDouble(b);
System.out.println(“Double a=”+ parseDouble);
输出:Double a=269.0