Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean checkStringToDoubleValidity(String toBeChecked) //checks to see if a string value can be parsed as a double
- {
- try{
- Double.parseDouble(toBeChecked);
- return true;
- } catch (NumberFormatException e){
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement