I've gotten a few nitpicks related to use of additional carriage returns in my formatted ouput. For example, in
Java 4a, I put in the following line of code:
...and got the following comment:
I'm thinking this println()isn't really necessary.
However, when I took that link out, my output looked like this:
[tom@localhost 4a]$ java Say 20
tweny[tom@localhost 4a]$
If I run a
test program that runs Say for every postive number that less than 100, my ouput looks something like this:
...
sixteen
seventeen
eighteen
nineteen
twentytwenty-one
twenty-two
twenty-three
twenty-four
twenty-five
twenty-six
twenty-seven
twenty-eight
twenty-nine
thirtythirty-one
thirty-two
...etc.
I'm assuming that my ouput wouldn't look this way if I was running my program in a DOS prompt. However, I'm using a bash shell in Linux. Having said all of this, here's my questions:
1. Is there a way to code around this so that no matter what shell I'm using, my printed ouput would look the same?
2. Should every program be tested using the DOS shell? I'm able to do so (using Wine I think); I'm just curious.