• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

[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: 80508
455
  • 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: 42109
935
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: 80508
455
  • 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: 42109
935
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)
 
Sheriff
Posts: 28385
99
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: 80508
455
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic