Thanks so much everyone for your answers. I'm just a newbie here, so
I'm surprised and happy to see such a response.
Regarding the NoSuchMethodError message I was getting, it probably
was the fact that I had no main() argument in the code.
I wrote to O'Reilly and they admitted that that piece of code did not
work. They wouldn't say why, tho.
I have a long way to go with Java, so I'm especially anxious to start
writing code. Hopefully soon!