Apache Commons CSV provides method to pass Header columns with withHeaders(). But is there a way to pass a specific row index as header row to Apache Commons. I have gone through the docs but have not found anything.
Apache Commons CSV provides method to pass Header columns with withHeaders(). But is there a way to pass a specific row index as header row to Apache Commons. I have gone through the docs but have not found anything.
I came across needing this kind of feature, but Apache Commons CSV doesn't have that. But however, I achieved it by removing all the garbage rows before the header row, so that the header becomes the first row.