int no = 124750;
String str = String.format(Locale.US,"%,d", no).replace(",",".");
// the above line gives str=124.750
String str = String.format(Locale.US,"%,d", no);
// the above line gives str=124,750;
String str = String.format("%,d", no);
//str = 124 750