Java数据结构-模拟ArrayList集合思想,手写底层源码(2),底层数据结构是数组,编写remove,addFirst,addLast,update,get方法
packagecom.atguigu.structure;publicclassDemo02_arrayList{publicstaticvoidmain(String[]args){MyGenericArrayListV1arrayListV1=newMyGenericArrayListV1();//arr.add(element:100,index:1);下标越界,无法插入arrayListV