|
I dont quite understand, the userPhoneTwo is already parsed to an integer in that first line
int userPhoneTwo= Integer.parseInt(userPhone)
I even tried seperating the if statements so that first the statement
if (userPhone.length < 10) shows up and gets checked and THEN I parse userPhone into an integer userPhoneTwo and THEN i check for userPhoneTwo to be a positive but I get an exception?
|