• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

An error in K&B certification book

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic