@arjun
I did not say that it is my code
see the post above which says
I will explain the difference between your code and the code from K & B
happy to help
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Prasad Kharkar wrote:@arjun
I did not say that it is my code
see the post above which says
I will explain the difference between your code and the code from K & B
happy to help
thanks a lot prasad,it really helped me understanding the code.
i was mad writing different code just for experimenting.
Please, if you claim the book is wrong, give us the code that is in the book, not your adaptation of it. There's no way for us to tell the difference without going to look up the code in the book.
I guess its perfectly alright because people tend to make mistakes. Though arjun, carefully look into the book and experiment with it.
Another suggestion, you can always consult the Errata before publishing or pointing out the mistake in the book. In the end we are humans,
so no issues.