How to split numbers in java?
<p>I am trying to split number but don't know how to do this.</p>

<p>I referred this link.</p>

<p><a href="http://stackoverflow.com/a/12297231/1395259">http://stackoverflow.com/a/12297231/1395259</a></p>

<p>Suppose I have a number <code>12345678</code>.</p>

<p>using above link I am splitting by 3 places.So the output becomes <strong><code>123</code> <code>456</code> <code>78</code></strong>.</p>

<p>But I want it as <strong><code>12</code> <code>345</code> <code>678</code></strong> And I want to take the string that was split in the form  <strong><code>12.345.678</code></strong> .</p>

<p>Can anybody help me please??</p>
