/*
 *  ========================================================================
 *  CubbyHole.java : Contains the contents which is stored by the Producer
 *  object and consumed by the Consumer object. In this unsynchronized version
 *  Consumer acesses the same value more than once and also misses values 
 *  that are stored by the Producer. 
 *  
 *  Adapted from : Campione M., Walrath K., Huml A., The Java Tutorial, 2000
 *  Modified by : Vasilios Lagakos                              March, 2001 
 *  =========================================================================
 */

public class CubbyHole {
    private int contents;	

/* Method used by the consumer to access the Cubbyhole contents */
    public int get() {	
        return contents;	
    }

/* Method used by the consumer to access (store) the Cubbyhole contents */
    public void put(int value) {
        contents = value;
    }
}
