Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- Double.parseDouble(firstBox.getText().toString();
- }
- catch (InterruptedException e)
- {
- this.textIncorrect.setText("Error!");
- boolean usableDouble = false;
- }
- if(Double.parseDouble(firstBox.getText().toString()) < 0 && usableDouble = true)
- { // or whatever parameters you are checking for
- blahblah
- blablaa
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement