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 201  RSS feed

 
Ranch Hand
Posts: 44
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Just a small typo. In the middle of page 201, before figure 4.5 it says "Then we want to first two." while it should be "Then we want the first two."

Regards,
Guillaume
 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
 
Ranch Hand
Posts: 65
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just before this sentence, there is another typo. "Then we then want them sorted". Should be ""Then we want them sorted".
But even if you fix both typos, these 3 sentences that go one after another don't sound very well: "Then we want them sorted. Then we want the first two. Then we want to print them out".

This is the explanation for the following snippet:
stream.filter(n -> n.length() == 4).sorted().limit(2).forEach(System.out::println);

I think it'd be better to slightly change the wording, e.g. "Then we want to process only two elements".
 
Jeanne Boyarsky
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
 
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!