how can I sucessfully count the numbers of values in a String that are seperated through a semicolon(including empty values)?
I have for example this String:
;;C;D;E;F;G
The correct number of values would be '7', but when I use .split
it returns the wrong number, because of the empty values.
How can I fix this?