package duckMachine.architecture; /** * The memory unit of the machine. * @author Amr Sabry * @version jdk-1.1 */ public class Memory implements MemoryI { private Word[] memoryCells; private int size; public Memory () { this(DEFAULT_SIZE); } public Memory (int s) { size = s; memoryCells = new Word[s]; for (int i=0; i