Duo Collab

1234567891011121314151617
  1. public class Memory{
  2. double storage1 = 0;
  3. public void saveNumber(double value){
  4. storage1 = value;
  5. }
  6. public void clear(){
  7. storage1 = 0;
  8. }
  9. public double recall(){
  10. return storage1;
  11. }
  12. }