1 public class Synch
2 {
s()3   public synchronized void s()
4     {
5       // This call to notify() isn't supposed to cause a
6       // java.lang.IllegalMonitorStateException.
7       notify ();
8     }
9 
main(String[] args)10   public static void main (String[] args)
11     {
12       (new Synch()).s();
13       System.out.println ("Ok");
14     }
15 }
16 
17 
18