I have an array. It contains numbers ranging from 1 to 100,000,000. However, the number does NOT have commas. I want to format the numbers into a String where the numbers have appropriately placed commas. How do I do this?
100000000 should be formatted to 100,000,000
10000 should be 10,000
100 should be 100
1000 should be 1,000
1000000 should be 1,000,000