aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes NumberFormat parsing - When can it fail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "NumberFormat parsing - When can it fail" Watch "NumberFormat parsing - When can it fail" New topic
Author

NumberFormat parsing - When can it fail

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430



The above example outputs 123.456. Is it not supposed to parse a string that can be converted to a number?
In what situation will a parseException be generated?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3882
    
  18

Have you read the documentation for NumberFormat?


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: NumberFormat parsing - When can it fail
 
It's not a secret anymore!