View Single Post
Old 05-04-2008, 12:12 PM   #9
snipez90
Member
 
Join Date: Apr 2006
Posts: 562
pyrotix you are right, dstrivemarch said "It is supposed to change even-indexed element" while I read it as even-ordered elements. In this case, itr.next() would return the object at index 0, and so the method sets even-indexed elements to "". Good catch there.

EDIT. Yeah the thing you have to remember is that the iterator is between elements (different from pointers). There really isn't that much logic involved, you just have to keep in mind the cases.
snipez90 is offline