|
burned fegiflu!!, but it's ok, try this:
public void removeElementAt(int removal Index) {
for(int i = removalIndex; i < last; i++)
list[i] = list[i+1];
last--;
}
This shifts all elements up one so when you tell the program to remove an object, it shifts all spots up one so that spot is cleared and thus you have a remove function.
Good Luck!
|