Home > Mobile >  Android text box empty assignment program error
Android text box empty assignment program error

Time:11-03

Set up a password text box, enter the password not click ok program error

CodePudding user response:

See what your offer a firm one wrong, I estimate is an issue you this logic, the if () when you decide whether empty leaving logic, the result is you put the empty time logic to the if the inside,

CodePudding user response:

Why and et3 assignment when the String into an int, and put int into String, meaningless,

CodePudding user response:

Parseint this should you the wrong this is of type String hovering like upstairs said you doesn't make sense

CodePudding user response:

refer to the second floor qq_36137075 response:
and et3 assignment when why put the String into an int, and put int into String, meaningless,

Et2 is the user type in the typing if et2 don't click on the button automatically exit is how to solve the I want to get the user password and then sent to the other place

CodePudding user response:

You. In the case of no input et2 gettext () is an empty string, "" Integer. The parseint (" ") will, of course, an error,

CodePudding user response:

Parseint position error. No is not an error.
  • Related