用ArrayList,他就相当于动态数组,用add方法添加元素,remove删除元素,count计算长度 转载于:https://www.cnblogs.com/yuhuameng/p/3657508.html