I'm new with java.. following the book "teach yourself java in 21 days"

I tried to print
System.out.format("%,d%n", total[0]);
And it printed 5a000a000 instead of 5,000,000

Why??