• 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
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

SCJP 6 Study Guide by Kathy Sierra & Bert Bates - Errata

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been looking for somewhere to submit errata - but haven't been able to find it! So hopefully we can submit our potential errata here for someone to have a look at and advise...

So this is what I found in the SCJP 6 study guide (do you agree?)

On page 590 - table 7-5 it states:

subMap(s, b*, e, b*) Returns a submap starting at key s and ending just before key s

surely this should be:

subMap(s, b*, e, b*) Returns a submap starting at key s and ending just before key e
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have another one from Chapter 2, Page 86-87:


Surely, line:10 is not legal either because we are accessing it from a static context.

EDIT: Blah .. my bad. This is super-legal.

 
Sheriff
Posts: 9691
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can submit your errata here.

Shashi did you try to compile that code?? The line is absolutely legal, you are accessing the size field from static context using an instance of the class which is absolutely legal.

Charl your error seems correct to me, it must be an error (although I didn't check it in my book)...
reply
    Bookmark Topic Watch Topic
  • New Topic