Parse a line in Java
<pre><code>String line = "a:b:c:d"   // Valid 
</code></pre>

<p>In the above line , I have 4 values separated by 3 ":". </p>

<pre><code>Sting invalidLine = "a:b:c" //Invalid 
</code></pre>

<p>As 4th value is missing </p>

<pre><code>String invalidLine = "a:b:c:"  //Invalid 
</code></pre>

<p>As 4th value is missing .</p>

<p>I want to spit it the line on count ofdelimiter ":". </p>
