Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- double d = Double.parseDouble(string);
- // string is a number
- } catch (NumberFormatException e) {
- // string is not a number
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement