maybe the answer to my question is not as straightforward as I'm thinking and also I can't find anything on the internet about it.
So let's say I have this:
String[] line;
BufferedReader data = new BufferedReader(new InputStreamReader(url.openStream()));
CSVReader csvReader = new CSVReaderBuilder(data).withSkipLines(2).build();
...
while((line = csvReader.readNext()) != null){
# some more code
}
So my question is: is there something like .readPrevious()
? Or some function to start reading from the end or "invert" an array if you might.
As I said, it might sound dumb or maybe is because I'm exhausted, but I can't seem to find a straightforward solution.