• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Some minor typos, chapter 3 (Java OCA 8 Programmer I Study Guide)

 
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

1. On page 111, “Method Chaining” section, the last paragraph:
There is a stray quote in the sixth sentence.
"A2C".replace("'C', '3')
It doesn't actually matter, but the beginning quote (“) of “ABC" is different font in the fourth sentence.


2. On page 126, the second paragraph, the fourth sentence:

“However, line 3 gave the wrong answer”.


“line 3” should be “line 7”.


3. On page 129, “Understanding an ArrayList” section, the second paragraph:
The semi-colon is missing after import java.util.*


4. On page 143, the fifth paragraph, the following example:
The parameter date2 should be date.


5. On page 146, “Converting to a long” sidebar:

LocalDateTime has toEpochTime(), which is the number of seconds since January1, 1970.


I don’t find toEpochTime() method, maybe it should be toEpochSecond(ZoneOffset offset).


6. On page 150, the meaning of dd:

dd means to include the leading zero for a single-digit month.


Probably month should be date.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushfiq Mammadov wrote:1. On page 111, “Method Chaining” section, the last paragraph:


I agree with typo and minor markup slip-up.

Mushfiq Mammadov wrote:2. On page 126, the second paragraph, the fourth sentence:


Should indeed be line 7. I thought you missed the really obvious one (the type of numbers but that one is already on the list ).

The first line of this paragraph states the array isn't sorted. This is debatable: for me the array is sorted... in reverse order. So it's maybe better to have an array like {3,1,2} instead.

Mushfiq Mammadov wrote:3. On page 129, “Understanding an ArrayList” section, the second paragraph:


That's indeed another typo.

Mushfiq Mammadov wrote:4. On page 143, the fifth paragraph, the following example:


Correct! And little bit weird because it's the only date2 occurence on the complete page

Mushfiq Mammadov wrote:5. On page 146, “Converting to a long” sidebar:


No points for this one, it's already on the list (see section Typos what are just plain wrong)

Mushfiq Mammadov wrote:6. On page 150, the meaning of dd:


That should indeed be adjusted! But it should not be date, but day And in the 1st part d represents the date in the month, date should also replaced with day. The DateTimeFormatter class agrees with me: d -> day-of-month

Hope it helps!
Kind regards,
Roel
 
Mushfiq Mammadov
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote: I thought you missed the really obvious one (the type of numbers but that one is already on the list ).


I have seen this on errata page before I wrote it

Roel De Nijs wrote:No points for this one, it's already on the list (see section Typos what are just plain wrong)


I looked at only “Minor Typos” section on errata page for this typo. You are right, I saw it in “Typos what are just plain wrong” section, sorry

Roel De Nijs wrote:That should indeed be adjusted! But it should not be date, but day And in the 1st part d represents the date in the month, date should also replaced with day. The DateTimeFormatter class agrees with me: d -> day-of-month



Really, at first I think this should be “day”, but I saw “the date in the month” in first sentence so I wrote “date”. Then I think maybe day is confused which belongs month or week, therefore authors wrote “date”. But “day-of-month” looks like better

Thanks, Roel!
 
Mushfiq Mammadov
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way, on page 378, "Index" section, letter T:
toEpochTime() method should be toEpochSecond() method too.
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushfiq Mammadov wrote:By the way, on page 378, "Index" section, letter T:
toEpochTime() method should be toEpochSecond() method too.


The index is probably created automatically based on the chapters (as a part of the book publishing process). So if the text in the chapter is changed, the index will be updated accordingly.
 
author & internet detective
Posts: 42103
933
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 agree with Roel's responses. Updated accordingly. I have on my to do list to merge the sections or turn them into a sortable table or something. Fingers crossed I get to it this weekend.

And yes, the index is created based on the text.
 
The only cure for that is hours of television radiation. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic