自定义类型使用泛型

package com.bjpowernode.t02generic;

/*
* 泛型模板
*/
public class TestGeneric04 {

public static void main(String[] args) {
//自定义类型使用泛型
MyList<Integer> ml = new MyList<>();
ml.setE(123);
ml.getE();
MyList.m1("hello");
}

}

原文地址:https://www.cnblogs.com/Koma-vv/p/9561633.html