Also on the next page (465), 2nd para from bottom reads in part:
"Notice that because we were using a SHORT style, we lost some precision when we converted the Date to a String."
The above statement is wrong. The time component was "lost" because getDateInstance() was used instead of getDateTimeInstance(). The SHORT style has nothing to do with it.
In pg. 563 (Using Maps) the comparison in the code segment "((Dog)o).name == name" should perhaps be rewritten using equals() instead. Otherwise the comparison may fail if a non-literal String was used to construct the Dog object.
We appreciate eagle eyes looking for errors and improvements, thanks!
BUT, this thread was almost 2 years old Since then, we've fixed errata in the book, it's been reprinted a couple of times, and most recently there is a whole new edition!
The bottom line is that it's almost never a good idea to resurrect an old thread like this. Far better to just start a new thread!
Thanks,
Bert
Post by:autobot
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
a bit of art, as a gift, the permaculture playing cards