This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - page 160-161  RSS feed

 
Ranch Hand
Posts: 65
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, if it was reported before, but I couldn't find.

p. 160:

"HashMap - Uses hashcode() to find keys"

should be hashCode.


p. 161:

Collection has a few methods that take lambdas, including removeIf(), forEach(), and merge().

Collection doesn't have merge() method, Map does.
 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anton,
Thanks for reporting. You are the first to notice both and I've added them to the errata. For the later, it looks like we originally had Collections and the editor "fixed" it. The idea was to summarize by mentioning each method rather than specifying its location.
 
Anton Shaikin
Ranch Hand
Posts: 65
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

Regarding your comment on the errata:

Chapter 3 In the second paragraph, “Collection has a few methods” should be “Collections has a few methods.” The idea was to include all the Collections types (Map has merge).



The part in bold should be "Collections have a few methods", if you mean Collections in general. Also, to avoid confusion with the Collections class, wouldn't it be better to say "Collections classes have a few methods" or "Java Collections Framework has a few methods"?
 
Jeanne Boyarsky
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Collections class *has* a few methods .
 
Anton Shaikin
Ranch Hand
Posts: 65
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:The Collections class *has* a few methods .



But if you meant Collections, the class, then the whole sentence wouldn't make sense: "Collections has a few methods that take lambdas, including removeIf(), forEach(), and merge().", because these methods are part of Collection, and Map classes.
 
Jeanne Boyarsky
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right, I didn't. I thought I was in a different conversation and didn't check the context. I meant the collections framework. Fixed the errata.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!