Actually, I just checked the Array javadoc, and it allows to remove elements from the array while iterating, so this var is not necessary.