2 import java.lang.reflect.*;
6 public class ClassDemo {
8 public static void main(String[] args) throws Exception {
10 // returns an array of TypeVariable object
11 TypeVariable[] tValue = List.class.getTypeParameters();
12 //System.out.println(tValue[0].getName());
13 System.out.println(tValue[0]);
15 BigInteger bi = new BigInteger("-1");
16 System.out.println(bi);