code: public void print(String[][] values) throws IOException {
      if (values == null || values.length == 0) {
        csvPrinter.println();
      } else {
        for (String[] value : values) {
          csvPrinter.printRecords((Object) value);
        }
      }
      csvPrinter.flush();
    }
docs: Print several lines of comma separated values.
  The values will be quoted if needed. Quotes and
  new line characters will be escaped.
  @param values the values to be put out
  @throws IOException if printing to the stream fails