• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • 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: 79262
377
  • 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: 41878
909
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: 79262
377
  • 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: 41878
909
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: 28236
95
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: 79262
377
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic