/**
 * A run object which prints the name of the thread ITERATION times.
 *
 * @version     1.1    January 25, 2000
 * @author      Franck van Breugel
 */
public class Printer implements Runnable 
{
    /** The number of times the name of the thread is printed. */
    private static final int ITERATION = 1000;

    /** Prints the name of the thread ITERATION times. */
    public void run()
    {
        for (int i = 0; i < ITERATION; i++) 
        {
            System.out.print(Thread.currentThread().getName());
        }
    }
}
