I have a list programmed as follows: public class MyList<T> . Is there a way to use the T variable to get the class name (so I can, from inside MyList , know that T is String, Socket, etc.)?
EDIT: Nevermind, found the answer here .
java generics
ryyst Jan 29 '11 at 1:47 april 2011-01-29 13:47
source share