return -1;
}
+ public void add(Object o) { addElement(o); }
public void addElement(Object o) {
if (size >= store.length - 1) grow();
store[size++] = o;
return lastElement();
}
+ public Object get(int i) { return elementAt(i); }
public Object elementAt(int i) {
return store[i];
}
store[i] = in[i];
}
+ public void remove(int i) { removeElementAt(i); }
public void removeElementAt(int i) {
if (i >= size || i < 0) throw new RuntimeException("tried to remove an element outside the vector's limits");
for(int j=i; j<size - 1; j++)