Trying to create a quick and simple solution for formatting an Integer into a formatted string with thousand separator,
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
String s = (String.format("%,d", 10000000)).replace(",",".");
System.out.println(s);
}
}
The output will be, 10.000.000. (H)