I have the following string:
Beans,,,Beans,,,Beans,,,Beans,,,playstation,,,Cool Beans,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
I am using this:
//split the string
String[] rowValues = row.split(",,,");
I expect that rowValues have length of 17.
But in the above case the length is only 6. How do i deal with the ,,, occurring multiple times in a row?