// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.ArrayList;
import java.util.List;

public class TabFormat {
    public static void main(String[] args) {
        List<DemoData> lst = new ArrayList<DemoData>();
        lst.add(new DemoData("A1", "Foo B", "Foo C"));
        lst.add(new DemoData("A2", "FooBar B", "FooBar C"));
        lst.add(new DemoData("A3", "FooBarFoo B", "FooBarFoo C"));
        for(DemoData o : lst) {
            System.out.printf("%-10s %-20s %-20s\n", o.getA(), o.getB(), o.getC());
        }
    }
}

class DemoData {
    private String a;
    private String b;
    private String c;
    public DemoData(String a, String b, String c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
    public String getA() {
        return a;
    }
    public String getB() {
        return b;
    }
    public String getC() {
        return c;
    }
}
