Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 K&B typos?

 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
p. 371

The methods ceil(), floor(), and round() all take floating-point
arguments and return integer equivalents (although again, delivered in a double variable).

round() is overloaded to return int or long.
p. 381

Long L3 = Long.valueOf("101010", 2); // binary String to Long object
System.out.println("L3 value = " + L3); // result is "L2 value = 42"
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the errata?
http://www.osborne.com/products/0072226846/0072226846_errata.txt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic