class C<S> {
    private S testField;

    public C(S testField) {
        this.testField = testField;
    }

    public S getTestField() {
        return testField;
    }
}

class Test {
    public static void main(String[] args) {
        C rawArray[] = new C[2];
        rawArray[0] = new C<String>("oh hi Mark");
        rawArray[1] = new C<Integer>(123123);

        C<String> strArray[] = rawArray;
        C<String> s1 = strArray[0];
        C<String> s2 = strArray[1];
        System.out.println(s1.getTestField());
        System.out.println(s2.getTestField());
    }
}