Java by API/java.lang.reflect/TypeVariable
TypeVariable: getName()
<source lang="java">
import java.lang.reflect.TypeVariable; import java.util.List; public class MainClass {
public static void main(String args[]) throws Exception { TypeVariable[] tv = List.class.getTypeParameters(); System.out.println(tv[0].getName()); }
}
</source>