//定义构造方法的类
package day02collection;
public class GenericClass<E> {
private E name;
public GenericClass() {
}
public GenericClass(E name) {
this.name = name;
}
public E
Java-定义并使用有泛型的类
最新推荐文章于 2022-11-19 14:11:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)