数字转成字符串时,如何确保没有逗号?

    public static String noComma(long number) {

        NumberFormat format = NumberFormat.getInstance(Locale.US);

        format.setGroupingUsed(false);

        return format.format(number);

    }

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.