package assignmentNine;

public class QuestionTwo {

    public static void main(String[] args) {
        String s = new String("I'm a string");
        Integer i = new Integer(72);
        
        MyGenericClass <String> stringGeneric= new MyGenericClass <String> (s);
        MyGenericClass <Integer> intGeneric = new MyGenericClass <Integer> (i);
        
        System.out.print("Calling printObject on the stringGeneric object:\n\t");
        stringGeneric.printObject();
        System.out.print("Calling printObject on the intGeneric object:\n\t");
        intGeneric.printObject();
    }
}
