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