Thank you both of you. Yeah i mean i tried first without the showpoint but the phone numbers was print like 8888888888.00 and zipcode 77777.00 even when it did not have the showpoint.
Then i was trying to leave it in number data format so i can validate the input. it should not allow the user enter letter on those two, and im trying to that in class function but im not sure how.
Do you know why NewPatient.getStreet() is not showing anything when im running the program?
Doing it where you gather the input seems sensible. If you wait until setPhoneNumber and then decide you don't like the input, how will you get fresh input?