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

Exam 2 Review Fall2007:Write insertAfter

Post your questions here.
Back to Exam Review 2

public void insertAfterNext(LLNode node)
{
   if(this.getNext() != null){
     this.getNext().insertAfter(node);
   }
   else
   {
     this.insertAfter(node);
   }
}

Can you do it without using insertAfter?



Link to this Page