public class Memory{ double storage1 = 0; public void saveNumber(double value){ storage1 = value; } public void clear(){ storage1 = 0; } public double recall(){ return storage1; } }