Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. try
  2. {
  3.     Double.parseDouble(firstBox.getText().toString();
  4. }
  5. catch (InterruptedException e)
  6. {
  7.     this.textIncorrect.setText("Error!");
  8.     boolean usableDouble = false;
  9. }
  10. if(Double.parseDouble(firstBox.getText().toString()) < 0 && usableDouble = true)
  11. {   // or whatever parameters you are checking for
  12.     blahblah
  13.     blablaa
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement