Skip to content

06. Reading individual data from a CSV

Hemanth Sridhar edited this page Mar 3, 2022 · 2 revisions

1.Using Column name and row number

String path = "src/test/resources/sample.csv";
ExtUtils ext = new CSVUtils(path);
ext.parseData();
ext.readCell("columnName", 2);

2.Using Column number and row number

String path = "src/test/resources/sample.csv";
ExtUtils ext = new CSVUtils(path);
ext.parseData();
ext.readCell(3, 1);