// 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) 
public class FlexArray {
    private static void dump(int[] a) {
        for(int v : a) {
            System.out.printf(" %d", v);
        }
        System.out.println();
    }
    public static void main(String[] args) throws Exception {
        int[] a1 = { 1 };
        int[] a2 = { 1, 2 };
        int[] a3 = { 1, 2, 3 };
        dump(a1);
        dump(a2);
        dump(a3);
    }
}
