// 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 GenArr {
    public static void main(String[] args) {
        Foo<Integer[], String[]> o1 = new Foo<Integer[], String[]>(new Integer[1], new String[1]);
        o1.test();
        Foo<int[], double[]> o2 = new Foo<int[], double[]>(new int[1], new double[1]);
        o2.test();
    }
}

class Foo<T1, T2> {
    private T1 o1;
    private T2 o2;
    public Foo(T1 o1, T2 o2) {
        this.o1 = o1;
        this.o2 = o2;
    }
    public void test() {
        System.out.println(o1.getClass().getName());
        System.out.println(o2.getClass().getName());
    }
}
