public static void notify(Object obj){
synchronized (obj) {
    obj.notify();
  }
}

public static void notify ( Object obj ) { synchronized ( obj ) { obj . notify ( ) ; } }
notifies an object for synchronization purposes .
