Here you can find the source of getMoneyFormat(double money)
public static String getMoneyFormat(double money)
//package com.java2s; //License from project: Apache License import java.text.DecimalFormat; public class Main { public static String getMoneyFormat(double money) { DecimalFormat df = new DecimalFormat("#,##0.00"); return df.format(money); }//from w w w .java 2 s . com }