//TwoParameterGenericClassDemo.java

class TwoParameterGenericClassDemo
{
    public static void main(String args[])
    {
        TwoParameterGenericClass<Integer, String> tpgcObject
            = new TwoParameterGenericClass<Integer, String>
        (
            123,
            "Hello World!"
        );

        System.out.println();
        tpgcObject.showTypes();

        //Get and then show the values.
        int i = tpgcObject.getObject1();
        System.out.println("Value of T1 object: " + i);
        String s = tpgcObject.getObject2();
        System.out.println("Value of T2 object: " + s);
    }
}
