I'm studying for SCJP, and my book (Sierra's) says about the Formatter class that I can use the flag "," to use locale-specific grouping separator. If I understand well, this line of code:
System.out.printf("%2$,f + %1$,f", 123.7, 456.2);
should produce:
456,200000 + 123,700000
with comma, but it's actually producing:
456.200000 + 123.700000
What I'm doing wrong?