📅  最后修改于: 2022-03-11 14:52:12.187000             🧑  作者: Mango
代码示例1
try {
a = Double.parseDouble(b);
} catch (NumberFormatException e) {
//the parseDouble failed and you need to handle it here
}