How would I go about validating a user entered an Integer and not Nothing. The user must enter something into the editText and it must a be an integer. How do I go about validating it.
I have this:
int age = Integer.parseInt(editAge.getText().toString());
if(editAge.getText().toString().equals("")){
Toast messsage please try again
}else they are good to go
I do not know how to test if the edit text is blank or a string is entered