File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An error in K&B certification book

 
Jon Lee
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wanna report an error in "Sun Certified Programmer & Developer for Java 2 Study Guide (Exam 310-035 & 310-027)" book authored by Kathy Sierra and Bert Bates.

On Chapter 3, page 43. The sample code can not be compiled!!!


static method "main" can not access instance member "size"!!

[ October 06, 2005: Message edited by: Jon Lee ]
[ October 06, 2005: Message edited by: Barry Gaunt ]
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ..,

Yes you are right about the piece of code...



Make a change in the main and it will run..


[ October 06, 2005: Message edited by: A Kumar ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic