String line = "a:b:c:d" // Valid
In the above line , I have 4 values separated by 3 ":".
Sting invalidLine = "a:b:c" //Invalid
As 4th value is missing
String invalidLine = "a:b:c:" //Invalid
As 4th value is missing .
I want to spit it the line on count ofdelimiter ":".