- All Implemented Interfaces:
- java.lang.Iterable<java.lang.String>
public class TableFormatter
extends java.lang.Object
implements java.lang.Iterable<java.lang.String>
Use like this:
```
TableFormatter tf = new TableFormatter("title a", "title b", "title c");
tf.feed("A1", "B1", "C1");
tf.feed("A2", "B2 boooooooom", "C2");
tf.feed("A3", "B3", "C3");
System.err.println(tf.titles());
for (String line : tf.lines()) {
System.err.println(line);
}
```
Provides output like this:
```
title a | title b | title c
======= | ============ | =======
A1 | B1 | C1
A2 | B2 booooooom | C2
A3 | B3 | C3
```