Hopefully this snippet is enough context. I am reading from a simple CSV to store data. I'm just wondering what this bit of code is saying especially the add(line.split(",") I assume it has something to do with the comma separation in the CSV but I just want to understand the code better and not simply use it.
try (BufferedReader br = new BufferedReader(new FileReader(file))) {
String line = "";
while ((line = br.readLine()) != null) {
listRecord.add(line.split(","));
}
Thanks for any insight!