View Single Post
  #9 (permalink)  
Old 07-27-2007, 12:58 AM
momo97 momo97 is offline
Member
 
Join Date: Jul 2007
Posts: 8
momo97 is on a distinguished road
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!
Reply With Quote