Java tutorial
//package com.java2s; import java.text.NumberFormat; import java.util.Locale; public class Main { public static String getMonetaryValue(Double value) { NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.getDefault()); return numberFormat.format(value); } }