public void removeColumn(final int colIndex){
  final CSVInfo info=getInfo();
  if (info.header) {
    final ArrayList<String> cols=new ArrayList<>(Arrays.asList(info.headers));
    cols.remove(colIndex);
    info.headers=cols.toArray(new String[cols.size()]);
  }
  info.cols--;
  for (  final CSVRow row : rows) {
    if (!row.isCommentLine()) {
      row.removeElementAt(colIndex);
    }
  }
  saveMetaData();
}

public void removeColumn ( final int colIndex ) { final CSVInfo info = getInfo ( ) ; if ( info . header ) { final ArrayList < String > cols = new ArrayList < > ( Arrays . asList ( info . headers ) ) ; cols . remove ( colIndex ) ; info . headers = cols . toArray ( new String [ cols . size ( ) ] ) ; } info . cols -- ; for ( final CSVRow row : rows ) { if ( ! row . isCommentLine ( ) ) { row . removeElementAt ( colIndex ) ; } } saveMetaData ( ) ; }
remove the column represented by the index
