Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ceating Wrapper Objects -- Float Constructor

 
Reddy Yeluru
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per table 6.2 and the associated discussions of Kathy and Bret's book, the constuctor for creating Float object takes only float value or a String value. There is one more overloaded constructor that takes double value. Is it a typo or is there any idea in skipping this construcor.
Authors -- Please comment.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reddy Yeluru:
Per table 6.2 and the associated discussions of Kathy and Bret's book, the constuctor for creating Float object takes only float value or a String value. There is one more overloaded constructor that takes double value. Is it a typo or is there any idea in skipping this construcor.
Authors -- Please comment.

I'm not an author but this is what table 6.2 in my book (page 377) says:
float
wrapper class : Float
Constructor arguments: float, double, or string
 
Reddy Yeluru
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My copy does not have it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic