50,526
社区成员
发帖
与我相关
我的任务
分享
String amount="12,345.00";
amount = amount.replaceAll(",", "");
BigDecimal bd = new BigDecimal(amount);
NumberFormat nf = new DecimalFormat("$,###.###");
String a = nf.format(bd);
System.out.println(a);
BigDecimal bd = new BigDecimal(amount);