I have a list like that:
private List myList = new ArrayList();
I want to get the .class of T. How can I do that?
You can't because of type erasure. The generic type is not known at runtime (it's 'erased'), it's only used at compile time.
This is a major difference between java generics and c# generics for example.