import java.text.DecimalFormat;public class Main { public static void main(String[] argv) throws Exception { DecimalFormat df = new DecimalFormat("#,.00;(#,.00)"); System.out.println(df.format(7123.00)); }}