All pastes #821604 Raw Edit

Someone

public text v1 · immutable
·published 2007-12-18 06:17 UTC
rendered paste body
import java.io.PrintStream;

public class MyRunnable
    implements Runnable
{

    public MyRunnable(String s)
    {
        name = s;
    }

    public void run()
    {
        for(int i = 0; i < 10; i++)
        {
            System.out.print("Thread: " + name + " ");
            for(int j = 97; j < 123; j++)
            {
                System.out.print((char)j);
                delay();
            }

            System.out.println("");
        }

    }

    private void delay()
    {
        for(int i = 0; i < 1000; i++);
    }

    private String name;
}