Hi,
my assignment state about the owner field in my data file:
The id value (an 8 digit number) of the customer who has booked this. ... The system you are writing does not interact with these numbers, rather it simply records them ...
I simply check whether the input in the customer id text field of my GUI is 8 digits. If it's more than that I throw a message to the user.
I don't care whether the user enter a numerical or alpha-numerical value. But I have to take care that there is a 8 digits input which goes down to the data file otherwise the writeBytes process to the data file becomes messy.
So I have two options:
1) Force the user to enter a 8 digit number
2) Pad the user input with white spaces til 8 digits
What do you prefer?
Regards,
Darya