Update Memory.java