How do I format a long integer as a string without separator in Java? November 21, 2022 by Tarik MessageFormat.format("{0,number,#}", foo);