数字转成字符串时,如何确保没有逗号? Leave a Comment / Java / July 12, 2011 July 12, 2011 public static String noComma(long number) { NumberFormat format = NumberFormat.getInstance(Locale.US); format.setGroupingUsed(false); return format.format(number); }