/** * Write a description of class Memory here. * * @author (your name) * @version (a version number or a date) */ public class Memory { // instance variables - replace the example below with your own /** * Constructor for objects of class Memory */ public Memory() { } public static double memory[] = new double[1]; public static void addMemory(double num){ memory[0] = num; System.out.println("Added "+ num + " to memory."); } public static double resetMemory(){ memory[0] = 0; Console.currentNumber = 0; return Console.currentNumber; } public static double recallMemory(){ //simpleOp.currentNumber = memory[0]; //System.out.println(memory[0]); Console.currentNumber = memory[0]; return Console.currentNumber; } }