// MemoryCell class
//
// ******************PUBLIC OPERATIONS**********************
//
//  Object read( )         --> Returns the stored value
//  void write( Object x ) --> Stores x

public class MemoryCell implements MemCell
{
        // Public methods
    public Object read( )         { return storedValue; }
    public void write( Object x ) { storedValue = x; }

        // Private internal data representation
    private Object storedValue;
}

