Win a copy of High Performance Python for Data Analytics this week in the Python 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Hand
Posts: 238
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: 40400
821
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: 238
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: 71766
312
  • 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: 40400
821
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: 40400
821
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic