A
asafshec
hello,
Is this a bug in DecimalFormat, or that I am not using it correctly?
this is my code:
public static void main(String[] args)
{
// create German Locale
Locale locale = new Locale("de");
DecimalFormat format1 =
(DecimalFormat)DecimalFormat.getInstance(locale);
try {
DecimalFormat format2 = new
DecimalFormat(format1.toLocalizedPattern());
}
catch(Exception e) {
System.out.print(e);
}
and I get this Exception:
java.lang.IllegalArgumentException: Malformed pattern "#.##0,###"
I will really appriciate any help on this.
Thanks,
Asaf
Is this a bug in DecimalFormat, or that I am not using it correctly?
this is my code:
public static void main(String[] args)
{
// create German Locale
Locale locale = new Locale("de");
DecimalFormat format1 =
(DecimalFormat)DecimalFormat.getInstance(locale);
try {
DecimalFormat format2 = new
DecimalFormat(format1.toLocalizedPattern());
}
catch(Exception e) {
System.out.print(e);
}
and I get this Exception:
java.lang.IllegalArgumentException: Malformed pattern "#.##0,###"
I will really appriciate any help on this.
Thanks,
Asaf