ArrayList类
什么是集合
提供一种存储空间可变的存储模型,存储的数据容量可以发生改变
ArrayList集合的特点
底层是数组实现的,长度可以变化
public boolean remove(Object o)
public E remove(int index)
public E set(int index,E element)
public E get(int index)
public int size()
public boolean add(E e)
public void add(int index,E element)
创建
ArrayList array = new ArrayList<>();