12345678910111213141516171819
  1. import java.util.Scanner;
  2. import java.lang.*;
  3. public class Memory{
  4. Scanner stdin = new Scanner(System.in);
  5. private double memNum = 0;
  6. public double getMemNum(){
  7. return this.memNum;
  8. }
  9. public void setMemNum(){
  10. System.out.println("Enter number to store to memory");
  11. System.out.print("> ");
  12. double num = stdin.nextDouble();
  13. this.memNum = num;
  14. }
  15. }