Java学习 java数据结构,oop,算法,学习笔记 线性表 /** * 线性表 */ public class SequenceList { private Object [] elementData; //默认大小 private int defaultSize = 0 ; //数组大小 private int size = 0 ; //数组容量 private int capacity; /** * 初始化 */ public SequenceList () { capacity = this . defaultSize; elementData = new Object [capacity]; } public SequenceL