Skip to content

Working with columns

Morten Laukvik edited this page Oct 29, 2016 · 1 revision

Creating a CSV with two columns

CSV csv = new CSV();
csv.addColumn("President");
csv.addColumn("Party");

Reordering columns. The following example moves the column "Party" from index 1 to index 0

csv.getMetaData().moveColumn(1,0);

Removes the first column (President).

csv.getMetaData().removeColumn(0);
Clone this wiki locally