An easy way to read a CSV file in Java efficiently is with the BufferedReader. We can just use it’s readLine method until the very end and split the file by commas to store it into our String array.

#java #arrays #javascript

Java: Read a CSV File into an Array
1.20 GEEK