2 import java.lang.reflect.*;
5 public class ClassDemo {
7 public static void main(String[] args) throws Exception {
9 // returns an array of TypeVariable object
10 TypeVariable[] tValue = List.class.getTypeParameters();
11 //System.out.println(tValue[0].getName());
12 System.out.println(tValue[0]);