View Single Post
  #31 (permalink)  
Old 05-09-2008, 06:42 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,022
hardwired is on a distinguished road
is there a way to move the summary window that shows everything i input in that long box to the controller?
I think you'll have to get the design recommendation from your mentor/teacher:
according to what one of the mentors was telling me, the definition class should have ALL the work, the controller class should be a simple message just to show the results.
I have no idea what they have in mind.

trying to satisfy the part where the phone number cannot be over 10 characters and must be an INTEGER and POSITIVE
The first part looks okay. For the second part you'll have to parse the string to an int so you can work with it.
Code:
int phoneNumber = Integer.parseInt(userPhoneTwo);
Reply With Quote