import java.io.IOException;
public class TestThread {
public static void main (String [] args) {
Thread myThread = new MyThread ();
System.out.println ("Erst Mal ein Hallo");
myThread.start();
}
public static class MyThread extends Thread {
@Override
public void run () {
System.out.println ("Hallo");
System.out.println ("Hallo zum Zweiten");
}
}
}