/* Listing2202.java */

class MyThread2202
extends Thread
{
  public void run()
  {
    int i = 0;
    while (true) {
      System.out.println(i++);
    }
  }
}

public class Listing2202
{
  public static void main(String[] args)
  {
    MyThread2202 t = new MyThread2202();
    t.start();
    try {
      Thread.sleep(2000);
    } catch (InterruptedException e) {
      //nichts
    }
    t.stop();
  }
}