// (c) F. Merciol 
// Plus d'informations sur http://m3101.merciol.fr
package thread;
public class Join {
    public static void pause (int seconds) {
				try {
						Thread.sleep (seconds*1000);
				} catch (InterruptedException e) {
				}
    }
    public static void main (String[] arg) {
				Thread thread = new Thread () {
								public void run () {
										System.err.println ("Here is "+getName ());
										pause (2);
								}
						};

				thread.start ();
				pause (1);
				try {
						thread.join ();
				} catch (InterruptedException e) {
				}
    }
}
