Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Final exam review Fall2006:Writing linked list methods

Back to Final Exam Review Fall2006

Questions? Answers? Comments?


public void remove (int index) {
LLNode current = this;
index = 1; <-Why are we resetting the index that the user sent us as a parameter? -REMOVEDel
if (index <=1 || index >= this.size()) {
return; }
else {
for (int i = 1; i = index - 2 ; i++) {
current.setNext() = current.next().next();
}



Link to this Page