FileDocCategorySizeDatePackage
SimpleThread.javaAPI DocExample410Tue Dec 12 18:57:48 GMT 2000None

SimpleThread

public class SimpleThread extends Thread

Fields Summary
Constructors Summary
public SimpleThread(String str)

        super(str);
    
Methods Summary
public voidrun()

        for (int i = 0; i < 10; i++) {
            System.out.println(i + " " + getName());
            try {
                sleep((long)(Math.random() * 1000));
            } catch (InterruptedException e) {}
        }
        System.out.println("DONE! " + getName());