It works like a infinite loop. Any for loop contains three consctucts. Initialization, expression evaluation (always to boolean) and finally third part Increment or decrement part.
Since youe for loop doesn't have any of these i will go into infinite loop
You can use this infinte loop code in the run() method of an animation thread, or any kind of continuously running thread for that matter. From within the loop you can monitor a variable that tells you when to stop executing the loop.