/** * Write a description of class Memory here. * * @author (your name) * @version (a version number or a date) */ public class Memory { private String memoryValue; public String recallMemory() { return memoryValue; } public void addMemory(String prompt) { memoryValue = Double.toString(Double.parseDouble(memoryValue) + Double.parseDouble(prompt)); } public void resetMemory() { memoryValue = "0"; } }