Answer the question
In order to leave comments, you need to log in
Why can't I work with more than 255 elements received from BufferedReader?
I can't process more than 255 records (there are about 20.000 in the file), as a result, an exception occurs:
java.lang.ArrayIndexOutOfBoundsException
But I can just count the elements for example in checked by writing SUM ++ and everything will work fine, I can't work only with the elements themselves. How to be*?
BufferedReader br = null;
....
....
br = new BufferedReader(new FileReader(csvFile), 4096);
br.readLine();
while ((line = br.readLine()) != null) {
...
String[] people = line.split(cvsSplitBy);
checked(people);
...
}
public static void checked(String[] r) {
if(r[4]!="")
TOTAL++;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question