Format numbers in java
<p>How do I get these formats in java?</p>

<p>Input:</p>

<pre><code>1223893
180703
80967
1461
700
</code></pre>

<p>Output :</p>

<pre><code>1,223,893
180,703
80,967
1,461
700
</code></pre>

<p>I will be always converting one by one number, this was just to get more examples.</p>
