public class TwoLockers { public static void main(String[] args) { Locker one = new Locker(); Locker another = new Locker(); one.setOther(another); another.setOther(one); one.start(); another.start(); } }