Update memory.java