I am trying to get an excel file in a javafx project, but I am getting the error
error: java.lang.ArrayIndexOutOfBoundsException.
in line 3 of the following code (the call to the Record constructor):
while ((line = br.readLine()) != null) {
String[] fields = line.split(FieldDelimiter,-5);
Record record = new Record(fields[0], fields[1], fields[2], fields[3], fields[4], fields[5], fields[6], fields[7], fields[8], fields[9], fields[10], fields[11], fields[12], fields[13], fields[14]);
dataList.add(record);
}