I get an error in my Java application when i try to read a column from each line of my csv file
java.lang.ArrayIndexOutOfBoundsException: 1
My code is like this using OpenCSV
public void insertOjd(String fichierEntree) throws SQLException {
try {
CSVReader reader = new CSVReader(new FileReader(fichierEntree));
String[] nextLine;
while ((nextLine = reader.readNext()) != null) {
if (nextLine != null) {
System.out.println(nextLine[1]);
}}....