In my code, I am reading in a text file using CSVReader and putting all that into a String array of type list:
CSVReader reader = new CSVReader(new FileReader("addTest.txt"), ',');
List<String[]> myEntries = reader.readAll();
reader.close();
I'm now wanting to add an item to the list, however, when trying to do this via myEntries.add("test" + "," + "test2"), it does not accept it. My goal here is to add an item or items to a new line, then I will use CSVWriter to write it back to file.
How do I go about adding an item, or items to a string array of type list? I've looked around but this problem still has me stumped.
Thank you.