I have a generic class, says :
MyClass
Inside a method of this class, I would like to test the type of T, for example :
if (object instanceof String) System.out.println("object is a string");