• 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: 109
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
Sheriff
Posts: 36007
422
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: 109
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!