I am currently reading the Deitel's book on Java, and came across this code in one of their programs:
public String toString()
{
return String.format( "%s: %s\n%s: $%,.2f; %s: %.2f",
"commission employee", super.toString(),
"gross sales", getGrossSales(),
"commission rate", getCommissionRate() );
}
As the title says, what does the "$%," in front of the ".2f" represent? I already know what a .2f means.