• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

[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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 77906
373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 41605
883
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
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: 77906
373
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 41605
883
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!!! You can't remove their spots! (hee hee)
 
Marshal
Posts: 27667
89
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a good thing we have people spotting those leopards mistakes.
 
Campbell Ritchie
Marshal
Posts: 77906
373
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But Jeanne has been put on the spot.
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Master Gardener Program
https://coderanch.com/t/771761/Master-Gardener-Program
reply
    Bookmark Topic Watch Topic
  • New Topic