Here you can find the source of formatCurrency(Object value)
public static String formatCurrency(Object value)
//package com.java2s; // it under the terms of the GNU General Public License as published by import java.text.NumberFormat; public class Main { public static String formatCurrency(Object value) { NumberFormat m_currencyformat = NumberFormat.getCurrencyInstance(); return m_currencyformat.format(((Number) value).doubleValue()); }/* w w w .j a va2 s .co m*/ }