Endless loop in for-statement
Please help me trying to get this code working! When I run it, it seems it falls into an endless loop, printing out "test" unlimited times and also the size of the list increases unbelievably fast.
I think it has to do with the removal of the list item before. The removal is working perfectly fine,