Killing time, working ahead on java5, Times.java Wondering about the intent of the assignment. I can print the first line of the table three ways: - as a string (not 'algorithmic' at all, but to the point); - with a third loop (looks a little silly); - or, by adding about 10 lines, within the two loops I'm using (much more 'algorithmic', but very nasty looking). The third way strikes me as getting the most mileage out of the assignment by making me jump through the most hoops, but I can't decide if that's the intent. Or, should I just wait and submit it the way I like, and see what nits get picked then? deener
hmmm, i don't want to give too much away, but... i passed using one of the 3 methods you listed above. the master solution was actually one of the other 2. i pondered the same question you are, but i decided to send in a simple solution to get the nitpicks and go from there... i passed on the first try! keep it simple...
Originally posted by Marilyn deQueiroz: The instructor's solution is not the ONLY solution that is acceptable, as you've probably noticed by now.
That's one think I do really like about the process -- that we don't have to come up with the exact same code as in the instructor's solution, but code that still holds up to close examination. Like Greg, I passed with one version and the instructor had another. Dean, you can always submit one of the simpler versions, then post your more complicated algorithmic approach to printing the first line in the closed forum for those who've passed the first set of assignments. I know I'd like to see what you've done.