Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Typo in book on page 132? (Java OCA 8 Programmer I Study Guide)

 
Raghavendra Desoju
Ranch Hand
Posts: 95
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Page 132, I believe comment for first line should be "//prints true" instead of "//prints hawk"
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Note that there are different forums for the OCP and OCA exam. I've moved your post to the OCA forum for you.

The book is correct. There are two method signatures of remove. When you pass an int (index) parameter, it returns the object that was successfully removed. The overloaded signature that takes the Object to remove returns a true/false value to say whether it was removed.
 
Raghavendra Desoju
Ranch Hand
Posts: 95
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Boyarsky,
I see it !! I have run some samples and found book is correct !! Thanks for the clarification !!

Regards,
Raghu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic