And yet, your output clearly shows you it is not.I feel like then it is in the right place.
2 bottles of beer on the wall,
2 bottles of beer.
Take one down,
pass it around.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
David Briggs
Originally posted by Bob Ruth:
(beerNum + " " + (beerNum==1?"bottle":"bottles") + (continued...)
Originally posted by Jake Miller:
Why would the book present the code this way, that clearly is not fully correct. I mean the program runs fine, but there is this more efficient/correct way to write the script.
------------------------
Bob
SCJP - 86% - June 11, 2009
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |