View Single Post
  #32 (permalink)  
Old 05-09-2008, 09:20 PM
Bascotie Bascotie is offline
Member
 
Join Date: Apr 2008
Posts: 77
Bascotie is on a distinguished road
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?
Reply With Quote