It's it odd to enjoy getting nitpicked? I really am enjoying this assignment but had a question concerning the method, other than the main method.
After reading the make your own method in preparation for 4b I realized that the more specific methods were private. So I changed mine from public to private. Now that it�s private how concerned with validating input should I be? Is it correct to check if the parameter is not null? In the example no validation is done, so does that mean since it is private the members of your class that use it are responsible for the validation?
Also, is it common set the value for a number between 0-19 in the main method, or do most move it out to the other method?
Thanks for such a great place to learn, and for patience and quick nitpickers! Dez
I'll chime in here really quick, but I'm sure others will have more to say
You probably want to validate the data before passing it on to the private method. If you look at some of your instructor solutions, you'll see how they've validated early on, well before any other methods are called.
So, if you validate on the outside, you won't have to on the inside (at least in this case)
Also... you'll probably have to have more than 1 method of your own
Good luck to you! [ August 24, 2004: Message edited by: dav mccartney ]