Prathyu Krishna wrote:Code is from Sybex book. I didn't try to run it
First of all, if you use a code snippet, a quote, a code example from another resource, you
must QuoteYourSources (in your original post).
Secondly,
you should pay very close attention to the actual code snippet in the book when you are trying to reproduce the output. The actual code snippet is
And although this code snippet has only 1 character more than your code snippet, it makes a very big difference!