Here you can find the source of formatCurrency(BigDecimal bd)
public static String formatCurrency(BigDecimal bd)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.text.NumberFormat; import java.util.Locale; public class Main { public static String formatCurrency(BigDecimal bd) { //Locale locale = new Locale("en_US"); return formatCurrency(bd, Locale.US); }//from w ww . ja v a2s . com public static String formatCurrency(BigDecimal bd, Locale locale) { if (bd == null) return (null); double d = bd.doubleValue(); NumberFormat form = NumberFormat.getCurrencyInstance(locale); return (form.format(d)); } }