Also I'm trying this statement under userPhone token but I can only do the first if not the second part successfully, i think they are in conflict, Im trying to satisfy the part where the phone number cannot be over 10 characters and must be an INTEGER and POSITIVE
int userPhoneTwo = Integer.parseInt(userPhone);
if (userPhone.length() > 10 || userPhoneTwo < 0)
{ JOptionPane.showMessageDialog(null, "Phone number cannot be longer than 10 digits and must be a positive integer");
System.exit(0);}