public class ThreadDemo extends Thread
{

    private final String name;

    public ThreadDemo(String name)
    {
        super();
        this.name = name;
    }

    public void run()
    {
        for (int i = 0; i < 10; i++)
        {
            //breakpoint 1 at the line bellow - we never stop here?!?
            System.out.println("Thread [" + name + "] : " + i);
            try
            {
                sleep((long)(Math.random() * 1000));
            }
            catch (InterruptedException e)
            {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args)
    {
        //breakpoint 2 at the line bellow
        for (char c = 'A'; c < 'D'; c++)
        {
            new ThreadDemo(String.valueOf(c)).start();
        }
    }

}

