I have a string with values separated by a ;
col1;col2;;
The last value is empty. I'm getting the number of columns by splitting the string:
int columns = myString.split(";").length;
However, the above returns 2 instead of 3.
Is this a problem of the split method?