avatar
string with group three digits with commas and round Java
public String getAmmount() {
    double amount = Double.parseDouble(contributionAmount);
    DecimalFormat formatter = new DecimalFormat("#,###.00");
    return formatter.format(amount);
}
/** Output **/ 9,517.07
24
You need to login to do this manipulation!