I got a String from a .csv and want to split it:
String line = "1,2,3,,,,false,true,,,false,false,,,,,,,,,,,,";
String data[] = line.split(",");
This is the result of the array:
data[0] - "1"
data[1] - "2"
data[2] - "3"
data[3] - ""
data[4] - ""
data[5] - ""
data[6] - "false"
data[7] - "true"
data[8] - ""
data[9] - ""
data[10] - "false"
data[11] - "false"
Why are the last "" lines cutted away from the array?