public static void wait ( final Object obj ) { synchronized ( obj ) { try { obj . wait ( ) ; } catch ( InterruptedException inex ) { Thread . currentThread ( ) . interrupt ( ) ; } } }
Waits for a object for synchronization purposes .