Display a currency value
import java.text.DecimalFormat; public class Main { public static void main(String[] argv) throws Exception { DecimalFormat df = new DecimalFormat("\u00a4#,##0.00"); System.out.println(df.format(4232.19)); System.out.println(df.format(-4232.19)); } }