58,452
社区成员
发帖
与我相关
我的任务
分享
public class DoubleParse {
public static void main(String[] args) {
// TODO Auto-generated method stub
String str = "0.45";
double db = Double.parseDouble(str);
System.out.println(db);
}
}
0.45