Java tutorial
//package com.java2s; public class Main { public static void wait(Object monitor) { try { // Assumes that the monitor is already "synchronized" monitor.wait(); } catch (InterruptedException ex) { // suppress } } }