I am reading CSV list using univocity parser - https://www.univocity.com/pages/parsers-tutorial. Below is how test.csv looks like
Active;3189;Active on this date 2015-03-15-17.03.06.000000
Catalog;3189;This is for date 2015-04-21-11.04.11.000000
Master;3190;It happens on this date 2016-04-22-09.04.27.000000
InActive;3190;Inactive on this date 2016-04-23-09.04.46.000000
Below code do a parsing -
List<String[]> allRows = parser.parseAll(new FileReader("E:/test.csv"));
How can I compare rows one by one after parsing and concatenate based on 2nd column uniqueness
O/p
for 3189 records -
String x = Active on this date 2016-03-15-17.03.06.000000 and This is for date 2015-04-21-11.04.11.000000
for 3190 records
String x = It happens on this date 2016-04-22-09.04.27.000000 and Inactive on this date 2016-04-23-09.04.46.000000