Here you can find the source of formatCurrency(Double value)
public static String formatCurrency(Double value)
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String formatCurrency(Double value) { String result = "0.00"; if (value != null) result = new DecimalFormat(",##0.00").format(value); return result; }/*w w w . j a v a2 s . c om*/ }