//带有泛型的类:
/**
* ArrayList
* E:Element元素,实际思想就是一个变量而已
* ArrayList<Integer>, E 接受到的类型,就是Integer类型
* public class ArrayList <E>{
* public boolean add(E e){
*
* }
* }
* */
//带有泛型的接口
/**
* public interface List<E>{
* abstract boolean add(E e)
* }
* */
//实现类,先实现接口 ,不理会泛型
/**
* public class ArrayList <E> implements List<E>{
*
* }
* 好处:调用者new ArrayList<String > 后期创建对象的时候可以自己指定数据类型
* *///带有泛型的类:
/**
* ArrayList