posted 12 years ago
Why is the following generating parse exceptions when parsing using the Currency instances of Number format.
The output of the above is
It looks like parsing of numbers is fine but it is choking when it comes to use the two currency instances namely:
Also is there a way i can find out what is the type of the object being processed inside the for loop? I used "nf.getClass().getName()" in the above example but it always returns the generic type "DecimalFormat". I want to be able to know if it is processing a currency instance or a number instance.
Thanks in advance.