In Java-1b, I ...
1 - use a loop to fill a
string with a full row of the input name.
2 - use a loop to write all the full rows out
3 - write the last partial row, if needed.
Katrina recommended ...
"How about a single loop which counts to 100, printing the name each time?
You can use your namesPerRow variable to decide whether or not you
need to put in a linebreak."
Which I am interpreting as suggesting I use an if-then check inside a single "count-to-100" loop. Would folks agree I'm interpreting this nitpick correctly? If so, I can certainly do that, but I'm lost as to the reason such an approach would be better. Any thoughts??
Thanks very much!
PS - Is this the sort of thing I should have just asked Katrina about in an email reply?