Java Experts ,
Please look into the below split command code and let me know why last two nulls are not captured.
String test = \"1,O1,,,,0.0000,0.0000,
As mentioned above, test.split(",");
will ignore trailing blank strings. You could use the two parameter method with a large second argument. However, the API also states
If n is non-positive then the pattern will be applied as many times
as possible and the array can have any length.
where n is the second argument. So if you want all the trailing strings, I would recommend
test.split(",", -1);