/** * When executed by a thread, it prints the name of the thread 1000 times. * * @author Franck van Breugel */ public class Printer implements Runnable { /** * Prints its name 1000 times. */ public void run() { final int NUMBER = 1000; for (int i = 0; i < NUMBER; i++) { System.out.print(Thread.currentThread().getName()); } } }