Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

m > n and 6 < 7

 
Greenhorn
Posts: 19
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
Additional question for page 339, Chapter 2-Review Question explanation #19:
2nd to the last sentence says:
....m > n evaluates to false, as 6 < 7 is not true.

I am thinking, it should be: 6 > 7 is not true.
Can someone enlighten?  Thanks.
 
Marshal
Posts: 78427
374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since this is an unrelated topic, you should have created a new thread. Never mind, I can break the thread for you.
Yes, 6 < 7 does look peculiar, but I would need to see the whole question to be sure about your erratum. Please check the known errata here; I couldn't find your error.
 
Christian Dadulla
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct, It is not on the errata page.  I am reading a paperback copy ISBN:978-1118957400 copyright(2015). I was wondering if it's already corrected/reported somewhere..
 
Campbell Ritchie
Marshal
Posts: 78427
374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That link is the one place where it will be reported, so if it isn' on that link it hasn't been reported. I don't have a copy of the book, so I know no more than I did earlier.
 
author & internet detective
Posts: 41763
885
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Added to the errata. Have a cow for noticing this error. And being a thorough reader!
 
Christian Dadulla
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
Not sure if this is a new one? Page 149, Working with Dates and Times:
The topmost code snippets, last line of code is missing a comment:
//UnsupportedTemporalTypeException

... it will be like this:
System.out.println(time.format(shortDateTime));//UnsupportedTemporalTypeException
 
Campbell Ritchie
Marshal
Posts: 78427
374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't know. It isn't in the errata page I linked earlier. Please explain why you think the comment about the exception should be included in the code.
 
Jeanne Boyarsky
author & internet detective
Posts: 41763
885
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

Christian Dadulla wrote:Thanks!
Not sure if this is a new one? Page 149, Working with Dates and Times:
The topmost code snippets, last line of code is missing a comment:
//UnsupportedTemporalTypeException

... it will be like this:
System.out.println(time.format(shortDateTime));//UnsupportedTemporalTypeException


No, this is intentional. We mention in the text that precedes that code that it behaves the same way and omit all the comments about printlns and exceptions. The idea is to call attention to the parameter vs object in the second example rather than repeat the same comments.
 
Die Fledermaus does not fear such a tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic