1、直接在list末尾添加元素:list.add(); 2、用于在列表的指定位置插入指定元素,并将当前处于该位置的元素及其后续元素的索引加1:void add(int index, E element)。