Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public boolean checkStringToDoubleValidity(String toBeChecked) //checks to see if a string value can be parsed as a double
  2. {
  3. try{
  4. Double.parseDouble(toBeChecked);
  5. return true;
  6. } catch (NumberFormatException e){
  7. return false;
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement