Mega Code Archive

 
Categories / Java by API / Java Lang Reflect
 

TypeVariable

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());    } }