Or, you can use the NumberFormat.getCurencyInstance() method and format your code that way :)


double money= 1.234;
NumberFormat currency = NumberFormat.getCurrencyInstance();...