code: public int[] colWidths() {
          int cols = columnCount();
          int[] widths = new int[cols];
  
          for (int i = 0; i < columnCount(); i++) {
              widths[i] = columns().get(i).columnWidth();
          }
          return widths;
      }
docs: Returns an array of column widths for printing tables