1
2
3
4
5
6
7
8
9
10
11
12
13
14
AsciiTable at = new AsciiTable();
at.addRule();
at.addRow("row 1 col 1", "row 1 col 2");
at.addRule();
at.addRow("row 2 col 1", "row 2 col 2");
at.addRule();
at.setPaddingTopChar('v');
at.setPaddingBottomChar('^');
at.setPaddingLeftChar('>');
at.setPaddingRightChar('<');
at.setTextAlignment(TextAlignment.CENTER);
at.setPadding(1);
System.out.println(at.render(33));