• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - page 195

 
Ranch Hand
Posts: 241
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This really is just a typo. Sorry for being picky, I just thought this could be of use to you guys when working on a second edition of the book.

Missing colon between Stringbuilder and append in the second code sample.

should be:
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No need to apologize. We really want to hear about typos, even minor ones! I've logged this in our errata.

It will definitely help us for a second edition. But more immediately, it also helps readers of THIS book. I wrote a blog post last year about why posting all errata, no matter how minor, is important.
 
T Vergilio
Ranch Hand
Posts: 241
5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great article, that's the spirit! I too want this book to be perfect, so I will keep sending feedback as I work my way through the chapters.

The fact that the errata list is so long means one thing to me: people appreciate the importance of this book enough to bother submitting their findings. No one wastes their time contributing to books they don't like or don't see any value in.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On the same page it says

In practice, there are many common collectors that come up over and over. Rather than making developers keep reimplementing the same ones, Java provides an interface with common collectors.



I think this refers to Collectors, but that's a class, not an interface.
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Frenkel Smeijers wrote:. . . Collectors, but that's a class, not an interface.

Please check the errata page shown above; I think you have found a “new” error.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sorry if I'm being dense, but what's the new error you are noticing here?

If it is the case of collectors vs Collectors, that's just the English word "collectors" in the sentence. If it is something else, can you elaborate?
 
Frenkel Smeijers
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book says that Java provides an interface with common collectors, but it doesn't say which interface it means. I think it means the class java.util.stream.Collectors, but that's a class, not an interface.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah! Thank you. That should definitely say class. Thank you. I've added it to the errata and fixed in the draft for the OCP 11 book!
 
Did you miss me? Did you miss this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic