List of utility methods to do List Print
String | printTwoColumns(List print Two Columns return printTwoColumns(left, right, leftWidth, rightWidth, sep, ""); |
String | printValues(List Print a list of values separated by commas. StringBuilder sb = new StringBuilder(); if (values != null) { Iterator<String> iterator = values.iterator(); while (iterator.hasNext()) { String value = iterator.next(); sb.append(value); if (iterator.hasNext()) { sb.append(", "); ... |
void | printWithBars(int[] maxLength, String[] headings, List print With Bars int nColumns = headings.length; if (nColumns <= 0) { System.out.println("No rows"); } else { System.out.println(rows.size() + " rows returned"); StringBuilder fb = new StringBuilder(); StringBuilder bar = new StringBuilder(); String gutter = ""; ... |