I think it TOTALLY rocks that y'all are getting together outside of class to work on the HW together. BRAVO!! As for the problem that Krista sent me, which sounds like the problem Betsy and Perry are describing: Note very carefully the difference between repeatNext and repeatNextInserting. If you did node1.repeatNext(node2,3) then node1.repeatNext(node3,3) node2 would be completely deleted from your list! That's what repeatNext does, and that's why it's inferior to repeatNextInserting. How could you use repeatNext to make a long list? You'd have to be careful where you did your repeats. You could do node1.repeatNext(node2,3) then node1.getNext().getNext().getNext().repeatNext(node3,3). That would insert the node2's, then carefully walk to the end of the list, and then insert the node3's. Does that help? I should be on later today, too. (If you're interested "What the heck is Guzdial doing in Tacoma and Seattle anyway?!?" you can find my talk slides at http://coweb.cc.gatech.edu/mediaComp-plan (scroll down to Tacoma), and you can see the conference I'm here for at http://www.cs.washington.edu/icer2005.) Mark Guzdial |