Originally posted by Barry Gaunt:
What on earth is M at? I don't want a solution just a couple of hints.
Cattle Drive participants excel at cryptic hints.
There are numerous reasons for introducing an identifier: reuse, readability, etc. If an identifier doesn't serve a good purpose, why bother with it?
If I change perspective and reorganize a loop I have following these statements then I can eliminate one of these string variables. I wonder if that is what M was driving at? Don't know. Sometimes a comment from the nitpicker has led to me changing a single space character in my program, other times it's led to sweeping changes that amount to a rewrite.
Decide how to address the nitpicker's comments and resubmit the assignment. Repeat as necessary.
No exceptions, no javadoc, no private constructors, no fancy stuff,... what's the world coming to?
Small steps.
Most (all?) of the earlier assignments tell you how many lines are in the instructor's solution. While I don't think anyone should be concerned with trying to match the number of lines exactly, if your program is dramatically longer (for example, your program is 50 lines but the instructors is only 25), you might want to step back and take another look at your approach.
[ October 20, 2002: Message edited by: Michael Matola ]