title: How to concatenate string after CSV parsing based on certain rules - row by row
body: <p>I am reading CSV list using univocity parser - <a href="https://www.univocity.com/pages/parsers-tutorial" rel="nofollow noreferrer">https://www.univocity.com/pages/parsers-tutorial</a>. Below is how test.csv looks like</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Below code do a parsing  - </p>
  
  <pre><code>List&lt;String[]&gt; allRows = parser.parseAll(new FileReader("E:/test.csv"));
  </code></pre>
  
  <p>How can I compare rows one by one after parsing and concatenate based on 2nd column uniqueness</p>
  
  <p>O/p</p>
  
  <p>for 3189 records - 
  String x  = <code>Active on this date 2016-03-15-17.03.06.000000 and This is for date 2015-04-21-11.04.11.000000</code></p>
  
  <p>for 3190 records
  String x  = <code>It happens on this date 2016-04-22-09.04.27.000000 and Inactive on this date 2016-04-23-09.04.46.000000</code></p>