@Test
public void testTable() {

    int nRows = 20;
    int nCols = 15;
    Double[][] table = new Double[nRows][nCols];
    for (int i = 0; i < nRows; i += 1) {
        for (int j = 0; j < nCols; j += 1) {
            table[i][j] = RandomUtils.nextDouble(0.0, 9999999999999999.0);
        }
    }
    String[] rowNames = new String[nRows];
    for (int i = 0; i < nRows; i += 1) {
        rowNames[i] = "row" + i;
    }
    String[] colNames = new String[nCols];
    for (int i = 0; i < nCols; i += 1) {
        colNames[i] = "col" + i;
    }
    String ret = PrettyDisplayUtils.displayTable(table, nRows, nCols, rowNames, colNames, null, 3, 3);
    System.out.println(ret);
    System.out.println(PrettyDisplayUtils.displayTable(table, nRows, nCols, rowNames, colNames, "features", 2, 1));
    System.out.println(PrettyDisplayUtils.displayTable(table, nRows, nCols, null, colNames, "features", 2, 1));
    System.out.println(PrettyDisplayUtils.displayTable(table, nRows, nCols, rowNames, null, "features", 2, 1));
    System.out.println(PrettyDisplayUtils.displayTable(table, nRows, nCols, null, null, "features", 2, 1));
}