public class SellBuy { public static void main(String[] args) { Store s = new Store(); new Thread(new Seller(s)).start(); new Thread(new Buyer(s)).start(); } } class Store { private boolean flag; public synchronized void put() {