input a numbers and add comma every three digits using java code example
Example: jquery number format comma
var number = 1557564534;
document.body.innerHTML = number.toLocaleString();
// 1,557,564,534
var number = 1557564534;
document.body.innerHTML = number.toLocaleString();
// 1,557,564,534