• 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] Errata Contribution Chapter 3, Page 123 Possible Typo

 
Greenhorn
Posts: 4
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On page 123, it states:

It is very common to use a loop when reading from or writing to an array. This loop sets
each element of number to 5 higher than the current index:


And the following code snippet is:

I believe the statement is referring to the variable "numbers", not number, right? I was confused because I did not see number anywhere on the page.
 
Marshal
Posts: 80505
455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch That looks like a typo; please check the errata page because I am too tired to do it myself
 
Lake Greene
Greenhorn
Posts: 4
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not listed on the errata page. Can someone confirm that this is a typo?
 
Campbell Ritchie
Marshal
Posts: 80505
455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please wait for Jeanne Boyarsky to read this thread but I am sure it is a misprint.
 
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
I've added this to errata. We did fix this in the Java 11 books.
 
reply
    Bookmark Topic Watch Topic
  • New Topic