• 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

[Sybex][possible errata] OCP 11 Programmer I Study Guide, Ch. 4, p. 145, The continue Statement

 
Ranch Hand
Posts: 34
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

in the explanation for the CleaningSchedule example (the 6th line in the original version has the label):

it is written:

Now, imagine we removed the CLEANING label in the continue sstatement (...)


This corresponds to the zookeeper skipping all leopards except those labeled 2 or in stable b.


I think that, instead of skipping, the zookeper is in fact cleaning the leopards mentioned above

This corresponds to the zookeeper skipping cleaning all leopards except those labeled 2 or in stable b.


What corresponds with the output generated by the code above.

 
Marshal
Posts: 71628
312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please confirm that is the book by Boyarsky and Selikoff.
Please look here for the errata; it was an easy task because you provided the page number (thank you). I think you are correct and you have found a “new” error. Please wait; Jeanne checks this forum regularly.
 
Tomasz Kasprzyk
Ranch Hand
Posts: 34
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Please confirm that is the book by Boyarsky and Selikoff.


Confirmed. Thank you
 
author & internet detective
Posts: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good catch. The code was right, the story was not. We do want our leopards to be clean!

Added to errata
 
Campbell Ritchie
Marshal
Posts: 71628
312
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:. . . . We do want our leopards to be clean! . . . .

Even spotlessly clean!
 
Jeanne Boyarsky
author & internet detective
Posts: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No!!! You can't remove their spots! (hee hee)
 
Marshal
Posts: 26278
80
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a good thing we have people spotting those leopards mistakes.
 
Campbell Ritchie
Marshal
Posts: 71628
312
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But Jeanne has been put on the spot.
 
I don't always make ads but when I do they're tiny
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic