• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ceating Wrapper Objects -- Float Constructor

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My copy does not have it.
 
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic