class TableUtil {

	public static String format(String[] colNames, List<Row> data) {
		StringBuilder sbd = new StringBuilder();
		sbd.append(formatTitle(colNames));

		for (Row row : data) {
			sbd.append("\n").append(formatRows(row));
		}

		return sbd.toString();
	}

}