System.out.println("exception occured: " + x);
System.out.println("exception occurred: " + x);
  public Thread_Wait()  {    System.out.println("creating thread");    Thread t = new Thread(this);    t.start();        try    {      Thread.sleep(100);    }    catch (Exception x)    {      System.out.println("exception occured: " + x);    }    synchronized (this)    {      System.out.println("notifying other thread");      notify();    }  }