package generic; /** * 泛型方法测试 * * @author caiyu * */ public class GenMethod { public static <T> void display(T t) { System.out.println(t.getClass()); } }
泛型方法测试
猜你喜欢
转载自liushuiwuyan.iteye.com/blog/2209078
今日推荐
周排行