我正在尝试一个get(intindex)方法,该方法返回列表中指定索引处的元素,但我不知道要返回什么。在tempNode之后我到底会有什么呢?public E get(intindex) throws IndexOutOfBoundsException { if (index <0 || index >= size) {
问题是要实现get(intindex)、set(intindex)和构造器SelfGrowingArray()这三个方法,以便生成main方法中显示的句子。Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -14public class SelfGrowingArrayindex,