I've got these code lines to read from a CSV file:
public static void main(String[] args) throws FileNotFoundException, IOException {
CSVReader reader = new CSVReader(new FileReader("file.csv"));
List myEntries = reader.readAll();
System.out.println(myEntries);
}
But what it returns to me is:
[[Ljava.lang.String;@6bc7c054, [Ljava.lang.String;@232204a1, etc.
My CSV file contains columns and rows (just like an Excel file). I have name
, society
, import
, ...
How do I read exactly what's inside the file?