exception parsing string to double in java code example
Example: string to double java exception
try {
a = Double.parseDouble(b);
} catch (NumberFormatException e) {
//the parseDouble failed and you need to handle it here
}
try {
a = Double.parseDouble(b);
} catch (NumberFormatException e) {
//the parseDouble failed and you need to handle it here
}