// Simple example of the definition and use of a generic class.
public class GenX<T> {
    private T identity;
    
    GenX(T identity) {
        this.identity = identity;
    }

    public T getIdentity() {
        return identity;
    }

    public static void main(String[] args) {
        GenX<String> t = new GenX<String>("Douglas Coupland");
        GenX<Integer> u = new GenX<Integer>(123456789);
        System.out.println(t.getIdentity() + " " + u.getIdentity() + i.getIdentity() );
    }
}
