public class javaMBM11 { public void test(T t) { System.out.println("Runnable"); t.run(); t.start(); System.out.println("Thread has been started..."); synchronized (t) { try { t.wait(1000); } catch (InterruptedException e) { System.out.println("Thread has been interrupted..."); } t.notify(); System.out.println("Thread has been notified..."); } } public static void main(String[] args) { javaMBM11 j = new javaMBM11(); j.test(new Thread()); } }