String csvFilename = "C:\\ClothingItem.csv";
CSVReader csvReader = new CSVReader(new FileReader(csvFilename));
String[] row = null;
while ((row = csvReader.readNext()) != null ) {
// Here my objective is to check if row[0] contains some
// string"abc" then
// I want to add the next 15 lines from csv file to a list.
// Then again check the same condition after those lines means
// from the 16th line and than add again to the list.
// How could I approach?
}
whileループ内での目的について言及しました。