This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

m > n and 6 < 7  RSS feed

 
Greenhorn
Posts: 19
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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: 62286
194
  • Mark post as helpful
  • send pies
  • 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
  • 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: 62286
194
  • Mark post as helpful
  • send pies
  • 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: 39086
714
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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: 62286
194
  • Mark post as helpful
  • send pies
  • 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: 39086
714
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!