String str = DecimalFormat.getNumberInstance().format(1245600000);
String currecy = NumberFormat.getCurrencyInstance().format(1245600000);
System.out.println("转换成Currency格式:"+currecy);
System.out.println("转换成带千分位的格式:"+str);
输出结果:
转换成Currency格式:¥1,245,600,000.00
转换成带千分位的格式:1,245,600,000