Here you can find the source of formatMoney(double dtSource)
public static String formatMoney(double dtSource)
//package com.java2s; //License from project: Apache License public class Main { public static String formatMoney(double dtSource) { java.text.DecimalFormat formatter = new java.text.DecimalFormat("#,###.00"); return "??" + formatter.format(dtSource); }/*from w w w . jav a 2s .c o m*/ }